From fc4eabcbdec3845c36f4febc65ec6d2f84df2bd8 Mon Sep 17 00:00:00 2001 From: William Wen Date: Wed, 28 Aug 2024 17:16:11 +0800 Subject: [PATCH] rename --- src/frontend/src/handler/create_table.rs | 2 +- src/frontend/src/optimizer/logical_optimization.rs | 2 +- src/frontend/src/scheduler/snapshot.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/handler/create_table.rs b/src/frontend/src/handler/create_table.rs index fe8c2594230c..5d2c0bdef1a7 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 62c08b3260bc..93da63cf70a4 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 771e007eb303..4eb23e97dd5f 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,