Blajda commented on issue #7165: URL: https://github.com/apache/arrow-datafusion/issues/7165#issuecomment-1660391097
Thanks @parkma99 On delta-rs we this [method](https://github.com/delta-io/delta-rs/blob/2f9a67f79f3d06367108925424609dfa1d24786e/rust/src/operations/transaction/state.rs#L102-L123) to convert an sql expression to `Expr`. We can almost convert it back to a sql string using `canonical_name` however it fails to parse using the above code. This is because the method uses[ Debug format](https://github.com/apache/arrow-datafusion/blob/ddb95497e2792015d5a5998eec79aac8d37df1eb/datafusion/expr/src/expr.rs#L956) for scalar values which results in output like `Int32(1)`. The parser thinks Int32(1) is a function. I would like to have a function like `canonical_name` except it format scalar values as their display value. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
