Skip to content

Commit

Permalink
pass as ref
Browse files Browse the repository at this point in the history
  • Loading branch information
notauserx committed Nov 19, 2024
1 parent 2fff9d9 commit ef720a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/query/sql/src/planner/semantic/type_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,7 @@ impl<'a> TypeChecker<'a> {
let func_name = normalize_identifier(name, self.name_resolution_ctx).to_string();
let func_name = func_name.as_str();
let func_name_lowercase = func_name.to_lowercase();
let func_name_lowercase = func_name.to_lowercase().as_str();
if !is_builtin_function(func_name_lowercase)
if !is_builtin_function(&func_name_lowercase)
&& !Self::all_sugar_functions().contains(&func_name_lowercase)
{
if let Some(udf) = self.resolve_udf(*span, func_name, args)? {
Expand Down

0 comments on commit ef720a5

Please sign in to comment.