diff --git a/src/frontend/src/handler/create_table.rs b/src/frontend/src/handler/create_table.rs index fe8c2594230c4..5d2c0bdef1a7d 100644 --- a/src/frontend/src/handler/create_table.rs +++ b/src/frontend/src/handler/create_table.rs @@ -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() { diff --git a/src/frontend/src/optimizer/logical_optimization.rs b/src/frontend/src/optimizer/logical_optimization.rs index 62c08b3260bc2..93da63cf70a42 100644 --- a/src/frontend/src/optimizer/logical_optimization.rs +++ b/src/frontend/src/optimizer/logical_optimization.rs @@ -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); diff --git a/src/frontend/src/scheduler/snapshot.rs b/src/frontend/src/scheduler/snapshot.rs index 771e007eb3039..4eb23e97dd5f7 100644 --- a/src/frontend/src/scheduler/snapshot.rs +++ b/src/frontend/src/scheduler/snapshot.rs @@ -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,