[
https://issues.apache.org/jira/browse/FLINK-18576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156522#comment-17156522
]
sunteng edited comment on FLINK-18576 at 7/13/20, 7:21 AM:
-----------------------------------------------------------
[~dwysakowicz] The flinksql client creates a MySQL data source, and the mysql
field is biginteger. When the query is executed in the SQL client, it will go
to getLong(int pos) in the GenericRowData code block, resulting in Caused by:
java.lang.RuntimeException: java.math.BigInteger cannot be cast to
java.lang.Long reports an error; check the source code and find it is a forced
conversion; how to solve it,
was (Author: sunteng):
The flinksql client creates a MySQL data source, and the mysql field is
biginteger. When the query is executed in the SQL client, it will go to
getLong(int pos) in the GenericRowData code block, resulting in Caused by:
java.lang.RuntimeException: java.math.BigInteger cannot be cast to
java.lang.Long reports an error; check the source code and find it is a forced
conversion; how to solve it,
> BigInteger to Long
> ------------------
>
> Key: FLINK-18576
> URL: https://issues.apache.org/jira/browse/FLINK-18576
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Runtime
> Affects Versions: 1.11.0
> Reporter: sunteng
> Priority: Major
> Labels: easyfix
>
> [getLong((int
> pos))|[https://github.com/apache/flink/blob/master/flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/GenericRowData.java]]
> error:
> java.math.BigInteger cannot be cast to java.lang.Long
--
This message was sent by Atlassian Jira
(v8.3.4#803005)