You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2020/02/17 06:26:00 UTC

[jira] [Commented] (FLINK-16110) LogicalTypeParser can't parse "TIMESTAMP(3) *ROWTIME*" and "TIMESTAMP(3) *PROCTIME*"

    [ https://issues.apache.org/jira/browse/FLINK-16110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17038113#comment-17038113 ] 

Jark Wu commented on FLINK-16110:
---------------------------------

{{TIMESTAMP(3) ROWTIME}} is the summary string of TimestampType which is used for logging. The serialization string representation doesn't include ROWTIME keywords. It's just a metadata so that I don't think we should support to parse {{TIMESTAMP(3) ROWTIME}}. In other words, it's now allowed to declare a type via {{TIMESTAMP(3) ROWTIME}} .

> 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)