leonardBang commented on a change in pull request #15124:
URL: https://github.com/apache/flink/pull/15124#discussion_r591305984
##########
File path:
flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl
##########
@@ -1095,6 +1097,16 @@ SqlTypeNameSpec ExtendedSqlBasicTypeName() :
typeAlias = token.image;
precision = Integer.MAX_VALUE;
}
+ |
+ <TIMESTAMP_LTZ>
+ {
+ typeAlias = token.image;
+ }
+ precision = PrecisionOpt()
+ {
+ typeName = SqlTypeName.TIMESTAMP_WITH_LOCAL_TIME_ZONE;
+ return new SqlTimestampLtzTypeNameSpec(typeAlias, typeName,
precision, getPos());
Review comment:
I think we cannot because `SqlTimestampLtzTypeNameSpec`overrides
`unparse` which considered precision(eg. `TIMESTAMP_LTZ(3)`) but
`SqlAlienSystemTypeNameSpec` does not
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]