Skip to content

Commit

Permalink
make comment understandable
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Aug 23, 2024
1 parent 2c3c0e1 commit 3234e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/binder/expr/function/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,10 @@ impl Binder {
let mut udf_context = HashMap::new();
for (i, arg) in args.into_iter().enumerate() {
if func.arg_names[i].is_empty() {
// unnamed argument, use `$1`, `$2` as the name
udf_context.insert(format!("${}", i + 1), arg);
} else {
// The index mapping here is accurate
// So that we could directly use the index
// named argument
udf_context.insert(func.arg_names[i].clone(), arg);
}
}
Expand Down

0 comments on commit 3234e43

Please sign in to comment.