tinfoil-knight commented on issue #9580: URL: https://github.com/apache/arrow-datafusion/issues/9580#issuecomment-1994216316
This error (`Unsupported ast node in sqltorel`) comes from this line: https://github.com/apache/arrow-datafusion/blob/0302d6530a5a7fffe7da40e0f3b13794a9c693ff/datafusion/sql/src/expr/mod.rs#L579 `AtTimeZone` SQL Expr is already provided by `sqlparser`. --- **Intended Change**: Add a condition to handle `SQLExpr::AtTimeZone` in the match case in `sql_expr_to_logical_expr_internal` here: https://github.com/apache/arrow-datafusion/blob/0302d6530a5a7fffe7da40e0f3b13794a9c693ff/datafusion/sql/src/expr/mod.rs#L162-L172 And add a scalar function to convert a date to a specific time zone as per the HowTo here: https://arrow.apache.org/datafusion/contributor-guide/index.html#how-to-add-a-new-scalar-function -- 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]
