wangxiaojing commented on pull request #15431:
URL: https://github.com/apache/flink/pull/15431#issuecomment-810696386
in flink sql ddl is
````
create table testOne(
id DECIMAL(20,0)
)WITH (
'connector.type' = 'jdbc',
'connector.url' =
'jdbc:mysql://localhost:3306/flink_db?characterEncoding=UTF-8&useSSL=false',
'connector.table' = 'testlxone',
'connector.username' = 'root',
'connector.password' = '123456',
'connector.write.flush.max-rows' = '1'
)
````
Bigint that has been mapped to decimal (20,0) is unsigned ,but error,
java.math.BigInteger cannot be cast to java.math.BigDecimal
at
org.apache.flink.api.common.typeutils.base.BigDecSerializer.copy(BigDecSerializer.java:33)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]