snuyanzin commented on code in PR #28152:
URL: https://github.com/apache/flink/pull/28152#discussion_r3235017837
##########
flink-table/flink-sql-parser/src/main/codegen/templates/Parser.jj:
##########
@@ -6208,6 +6247,7 @@ SqlNode BuiltinFunctionCall() :
|
<INTERVAL> e = IntervalQualifier() { args.add(e); }
)
+ [ <FORMAT> format = StringLiteral() { args.add(format); } ]
Review Comment:
This requires being disabled (done in a separate commit).
Since Flink does not have support for this, there are 2 options
1. just ignores `FORMAT` and returns result without looking into that
2. in some corner cases might fail i code generation, for instance
```sql
SELECT CAST('1234-12-12' AS INTEGER FORMAT 'YYYY');
```
For that reason it is disabled in `SqlCastFunction`
--
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]