Skip to content

Commit

Permalink
Replace to_lowercase with to_string in sql exmaple (apache#11486)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw authored and wiedld committed Jul 31, 2024
1 parent c3e72b4 commit b099df7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datafusion/sql/examples/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ struct MyContextProvider {

impl MyContextProvider {
fn with_udaf(mut self, udaf: Arc<AggregateUDF>) -> Self {
// TODO: change to to_string() if all the function name is converted to lowercase
self.udafs.insert(udaf.name().to_lowercase(), udaf);
self.udafs.insert(udaf.name().to_string(), udaf);
self
}

Expand Down

0 comments on commit b099df7

Please sign in to comment.