This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 0c39b4d2ff Replace to_lowercase with to_string in sql exmaple (#11486)
0c39b4d2ff is described below

commit 0c39b4d2ffefcd1e0e77389e493291aaa315d628
Author: 张林伟 <[email protected]>
AuthorDate: Wed Jul 17 04:33:12 2024 +0800

    Replace to_lowercase with to_string in sql exmaple (#11486)
---
 datafusion/sql/examples/sql.rs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/datafusion/sql/examples/sql.rs b/datafusion/sql/examples/sql.rs
index 1b92a7e116..b724afabaf 100644
--- a/datafusion/sql/examples/sql.rs
+++ b/datafusion/sql/examples/sql.rs
@@ -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
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to