[
https://issues.apache.org/jira/browse/FLINK-14441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16955693#comment-16955693
]
Jark Wu commented on FLINK-14441:
---------------------------------
Hi [~hailong wang], the acceptable physical classes of YearMonthIntervalType
are {{Period}} and {{Integer}}. Using {{Long}} is invalid here. So we should
cast the return value to Integer.
> Fix ValueLiteralExpression#getValueAs when valueClass is Period.class
> ---------------------------------------------------------------------
>
> Key: FLINK-14441
> URL: https://issues.apache.org/jira/browse/FLINK-14441
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Affects Versions: 1.10.0
> Reporter: hailong wang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.9.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In ValueLiteralExpression#getValueAs, when valueClass is Period.class, the
> expect class is inconsistent with the result class
--
This message was sent by Atlassian Jira
(v8.3.4#803005)