mvzink opened a new pull request, #1739: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1739
MySQL doesn't have the same set of possible CAST types as for e.g. column definitions. For example, it raises a syntax error for `CAST(1 AS INTEGER SIGNED)` and instead expects `CAST(1 AS SIGNED INTEGER)`. This patch takes a somewhat unfortunate route of 1) adding a boolean flag that modifies the `parse_data_type` match expression, and 2) storing whether it was parsed this way in the `Expr::Cast` AST node to be used during formatting. Feedback and ideas for alternative approaches are very welcome. Closes #1589 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
