leonardBang commented on a change in pull request #15124:
URL: https://github.com/apache/flink/pull/15124#discussion_r592209263
##########
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:
You're right that `STRING` and `BYTES` didn't keep precision
info(Integer.MAX_VALUE by default), user can not to use `STRING(3)`,
`STRING(10)` , but user need to use `TIMESTAMP_LTZ(3), TIMESTAMP_LTZ(6)` in SQL.
----------------------------------------------------------------
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]