Skip to content

Commit d4bd725

Browse files
committed
fix issues
1 parent c160c6e commit d4bd725

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

src/query/sql/src/planner/semantic/type_check.rs

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -734,15 +734,35 @@ impl<'a> TypeChecker<'a> {
734734
.all_function_names()
735735
.into_iter()
736736
.chain(AggregateFunctionFactory::instance().registered_names())
737-
.chain(GENERAL_WINDOW_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
738-
.chain(GENERAL_LAMBDA_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
739-
.chain(GENERAL_SEARCH_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
740-
.chain(ASYNC_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
737+
.chain(
738+
GENERAL_WINDOW_FUNCTIONS
739+
.iter()
740+
.cloned()
741+
.map(|ascii| ascii.into_inner().to_string()),
742+
)
743+
.chain(
744+
GENERAL_LAMBDA_FUNCTIONS
745+
.iter()
746+
.cloned()
747+
.map(|ascii| ascii.into_inner().to_string()),
748+
)
749+
.chain(
750+
GENERAL_SEARCH_FUNCTIONS
751+
.iter()
752+
.cloned()
753+
.map(|ascii| ascii.into_inner().to_string()),
754+
)
755+
.chain(
756+
ASYNC_FUNCTIONS
757+
.iter()
758+
.cloned()
759+
.map(|ascii| ascii.into_inner().to_string()),
760+
)
741761
.chain(
742762
Self::all_sugar_functions()
743763
.iter()
744764
.cloned()
745-
.map(|ascii| ascii.into_inner()),
765+
.map(|ascii| ascii.into_inner().to_string()),
746766
);
747767
let mut engine: SimSearch<String> = SimSearch::new();
748768
for func_name in all_funcs {

0 commit comments

Comments
 (0)