edmondop commented on issue #10524:
URL: https://github.com/apache/datafusion/issues/10524#issuecomment-2112666645

   @alamb I wasn't able to get a simple sql example to pass, if I convert the 
`Expr` to String directly, the literal is wrapped in a type like so.
   
   ```
        Running 
`/home/edmondo/Development/arrow-datafusion/target/debug/examples/plan_to_sql`
   thread 'main' panicked at datafusion-examples/examples/plan_to_sql.rs:45:5:
   assertion `left == right` failed
     left: "((\"a\" < 5) OR (\"a\" = 8))"
    right: "a < 5 OR a = 8"
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   ```
   
   However, if I use the `expr_to_sql`, the column names are quoted, 
   
   ```
        Running 
`/home/edmondo/Development/arrow-datafusion/target/debug/examples/plan_to_sql`
   thread 'main' panicked at datafusion-examples/examples/plan_to_sql.rs:45:5:
   assertion `left == right` failed
     left: "((\"a\" < 5) OR (\"a\" = 8))"
    right: "a < 5 OR a = 8"
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   ```
   
   is it the expectation that column names are always quoted? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to