mvzink commented on code in PR #1739:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/1739#discussion_r1968070815
##########
src/ast/mod.rs:
##########
@@ -798,9 +798,15 @@ pub enum Expr {
kind: CastKind,
expr: Box<Expr>,
data_type: DataType,
- // Optional CAST(string_expression AS type FORMAT
format_string_expression) as used by BigQuery
- //
https://cloud.google.com/bigquery/docs/reference/standard-sql/format-elements#formatting_syntax
+ /// Optional CAST(string_expression AS type FORMAT
format_string_expression) as used by [BigQuery]
+ ///
+ /// [BigQuery]:
https://cloud.google.com/bigquery/docs/reference/standard-sql/format-elements#formatting_syntax
format: Option<CastFormat>,
+ /// Whether this was parsed as a [MySQL]-style cast, which has a
different syntax for
Review Comment:
I simplified this patch to take that approach and not introduce the error
path for MySQL (leaving existing permissive parsing in place, since I noticed
that's already the approach taken with other datatypes and dialects).
--
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]