Apache Doris 中文技术论坛
Questions Tags Users Badges

【已解决】Mysql tinyint数据类型写入Doris变无符号

Asked Dec 31, 2024 Modified Jan 6
Viewed 82
ingestion 2.0

6accaf2b92a45c3bf645db0966cc8a4.png

问题1:mysql的tinyint(1)类型,使用flink-doris-connecor-1.16-1.5.0自动建表, 在doris里面创建的是boolean类型
问题2:手动修改doris数据类型, 创建doris的 int(1)类型, 对应mysql的tinyint(1), 使用catlog,将mysql数据插入到doris之后, mysql的有符号到doris变成了无符号
例如, mysql的-1, 在doris里面全部是1

edited Jan 6
Belief9
asked Dec 31, 2024
1 Answers

在catalog中加这个参数即可
tinyInt1isBit=false

edited Jan 1, 1970
黄海军@SelectDB4918
answered Dec 31, 2024
Related Questions
如图中所示,我1fe 2be,测试2000万行0.2G数据,导出文件不会分散在多个节点上,enable_parallel_outfile也开了,是有什么条件吗?
1 answers
stream load的时候不支持自定义agg_state函数
3 answers
如图,max_byte_per_task这个参数不是默认值9G吗,为什么官网写100G呢?还是说100G是最大值?
java 频繁操作数据库 一直报pparent connection leak detected怎么解决
1 answers
通过 finkcdc 同步mysql数据到doris【3.0.4、3.0.5】,报错 fail to apply alter column type event,3.0.3没有问题
1 answers
broker load大表导数较慢
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.