[
https://issues.apache.org/jira/browse/FLINK-14441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16954488#comment-16954488
]
hailong wang commented on FLINK-14441:
--------------------------------------
Hi [~jark], i am sorry for reply late. Yes, you are right. But i found
{code:java}
period.toTotalMonths()
{code}
return a long type. So when using {{getValueAs(Integer), the return type is
Long, but the }}given class is {{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)