[
https://issues.apache.org/jira/browse/FLINK-16110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17038749#comment-17038749
]
Jingsong Lee commented on FLINK-16110:
--------------------------------------
Looks like misusing of {{asSummaryString}} and {{asSerializableString}}.
[~jark] [~twalthr] I got your meaning.
But if users generate a {{TableSchema}} with {{TimestampType with ROWTIME
kind}}. After the {{putTableSchema}} and {{getTableSchema}} of
{{DescriptorProperties}}. The ROWTIME message will loose. This may occurs in
HiveCatalog and SqlGateway. They need ser/deser TableSchema.
So my understanding is that we should not have any non-regular kind
TimestampType in TableSchema, we should always use watermark? So the future
plan is adding check in TableSchema to ensue there is no non-regular kink
TimestampType?
> LogicalTypeParser can't parse "TIMESTAMP(3) *ROWTIME*" and "TIMESTAMP(3)
> *PROCTIME*"
> ------------------------------------------------------------------------------------
>
> Key: FLINK-16110
> URL: https://issues.apache.org/jira/browse/FLINK-16110
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / API
> Affects Versions: 1.10.0
> Reporter: godfrey he
> Priority: Major
>
> {{TIMESTAMP(3) *ROWTIME*}} is the string representation of
> {{TimestampType(true, TimestampKind.ROWTIME, 3)}} , however
> {{LogicalTypeParser}} can't convert it to {{TimestampType(true,
> TimestampKind.ROWTIME, 3)}}.
> TIMESTAMP(3) *PROCTIME* is the same case.
> the exception looks like:
> {code}
> org.apache.flink.table.api.ValidationException: Could not parse type at
> position 12: Unexpected token: *ROWTIME*
> Input type string: TIMESTAMP(3) *ROWTIME*
> at
> org.apache.flink.table.types.logical.utils.LogicalTypeParser$TokenParser.parsingError(LogicalTypeParser.java:371)
> at
> org.apache.flink.table.types.logical.utils.LogicalTypeParser$TokenParser.parsingError(LogicalTypeParser.java:380)
> at
> org.apache.flink.table.types.logical.utils.LogicalTypeParser$TokenParser.parseTokens(LogicalTypeParser.java:357)
> at
> org.apache.flink.table.types.logical.utils.LogicalTypeParser$TokenParser.access$000(LogicalTypeParser.java:333)
> at
> org.apache.flink.table.types.logical.utils.LogicalTypeParser.parse(LogicalTypeParser.java:106)
> at
> org.apache.flink.table.types.logical.utils.LogicalTypeParser.parse(LogicalTypeParser.java:116)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)