Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
notauserx committed Nov 27, 2024
1 parent c160c6e commit d4bd725
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/query/sql/src/planner/semantic/type_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,15 +734,35 @@ impl<'a> TypeChecker<'a> {
.all_function_names()
.into_iter()
.chain(AggregateFunctionFactory::instance().registered_names())
.chain(GENERAL_WINDOW_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
.chain(GENERAL_LAMBDA_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
.chain(GENERAL_SEARCH_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
.chain(ASYNC_FUNCTIONS.iter().cloned().map(|ascii| ascii.into_inner()))
.chain(
GENERAL_WINDOW_FUNCTIONS
.iter()
.cloned()
.map(|ascii| ascii.into_inner().to_string()),
)
.chain(
GENERAL_LAMBDA_FUNCTIONS
.iter()
.cloned()
.map(|ascii| ascii.into_inner().to_string()),
)
.chain(
GENERAL_SEARCH_FUNCTIONS
.iter()
.cloned()
.map(|ascii| ascii.into_inner().to_string()),
)
.chain(
ASYNC_FUNCTIONS
.iter()
.cloned()
.map(|ascii| ascii.into_inner().to_string()),
)
.chain(
Self::all_sugar_functions()
.iter()
.cloned()
.map(|ascii| ascii.into_inner()),
.map(|ascii| ascii.into_inner().to_string()),
);
let mut engine: SimSearch<String> = SimSearch::new();
for func_name in all_funcs {
Expand Down

0 comments on commit d4bd725

Please sign in to comment.