Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Aug 28, 2024
1 parent 1b2e88c commit fc4eabc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/handler/create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ pub fn bind_sql_column_constraints(
// snapshot value.
let rewritten_expr_impl = session
.pinned_snapshot()
.now_proc_time()
.inline_now_proc_time()
.rewrite_expr(expr_impl.clone());

if let Some(snapshot_value) = rewritten_expr_impl.try_fold_const() {
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/logical_optimization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ impl LogicalOptimizer {
return plan;
}

let mut v = ctx.session_ctx().pinned_snapshot().now_proc_time();
let mut v = ctx.session_ctx().pinned_snapshot().inline_now_proc_time();

let plan = plan.rewrite_exprs_recursive(&mut v);

Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/scheduler/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl ReadSnapshot {
}
}

pub fn now_proc_time(&self) -> InlineNowProcTime {
pub fn inline_now_proc_time(&self) -> InlineNowProcTime {
let epoch = match self {
ReadSnapshot::FrontendPinned { snapshot, .. } => Epoch(snapshot.committed_epoch()),
ReadSnapshot::Other(epoch) => *epoch,
Expand Down

0 comments on commit fc4eabc

Please sign in to comment.