From 50e01a0900a77263a3bc7aa764b44aa839055c56 Mon Sep 17 00:00:00 2001 From: Michael Xu Date: Mon, 22 Jan 2024 10:12:33 -0500 Subject: [PATCH] change function name --- src/frontend/src/binder/mod.rs | 2 +- src/frontend/src/handler/create_sql_function.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/binder/mod.rs b/src/frontend/src/binder/mod.rs index 6c5347b38a902..bf090a87a7514 100644 --- a/src/frontend/src/binder/mod.rs +++ b/src/frontend/src/binder/mod.rs @@ -416,7 +416,7 @@ impl Binder { self.context.clause = clause; } - pub fn get_udf_context(&mut self) -> &mut UdfContext { + pub fn udf_context_mut(&mut self) -> &mut UdfContext { &mut self.udf_context } } diff --git a/src/frontend/src/handler/create_sql_function.rs b/src/frontend/src/handler/create_sql_function.rs index 05bb39bfe35b0..21798b17b2ac5 100644 --- a/src/frontend/src/handler/create_sql_function.rs +++ b/src/frontend/src/handler/create_sql_function.rs @@ -208,7 +208,7 @@ pub async fn handle_create_sql_function( let mut binder = Binder::new_for_system(session); binder - .get_udf_context() + .udf_context_mut() .update_context(create_mock_udf_context(arg_types.clone())); if let Ok(expr) = extract_udf_expression(ast) {