From 85814d036669d6062483e5f41696bbbbab9e4ac8 Mon Sep 17 00:00:00 2001 From: Zihao Xu Date: Tue, 27 Feb 2024 06:27:32 +0800 Subject: [PATCH] fix check --- .../src/handler/create_sql_function.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/frontend/src/handler/create_sql_function.rs b/src/frontend/src/handler/create_sql_function.rs index 8fc9717f7b37b..f0ab16a4be540 100644 --- a/src/frontend/src/handler/create_sql_function.rs +++ b/src/frontend/src/handler/create_sql_function.rs @@ -123,24 +123,6 @@ fn create_mock_udf_context( ret } -/// Find the pattern for better hint display -/// return the exact index where the pattern first appears -fn find_target(input: &str, target: &str) -> Option { - // Regex pattern to find `target` not preceded or followed by an ASCII letter - // The pattern uses negative lookbehind (?