StarRocks/starrocks
GitHub で見る[BUG] 使用mysql jdbc catalog 查询mysql中的表的时候,提示JDBC result type is Integer, please set the type to one of tinyint,smallint,int,bigint: BE:10002
Open
#60,124 opened on 2025年6月20日
good first issuetype/bug
説明
Steps to reproduce the behavior (Required)
catalog
CREATE EXTERNAL CATALOGjdbc_catalog_uat_180 PROPERTIES ("driver_class" = "com.mysql.cj.jdbc.Driver", "checksum" = "95cde01c78e7b04e13305338d60e056a", "driver_url" = "https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.28/mysql-connector-java-8.0.28.jar", "type" = "jdbc", "user" = "root", "jdbc_uri" = "jdbc:mysql://ip:3306" )
mysql这个字段的类型 tinyint(1) unsigned DEFAULT '0'
Expected behavior (Required)
希望可以正确查询出数据
Real behavior (Required)
查询报错 ,提示 SQL 错误 [1064] [42000]: Type mismatches on column[house_manager_bonus_is_capped], JDBC result type is Integer, please set the type to one of tinyint,smallint,int,bigint: BE:10002
StarRocks version (Required)
- You can get the StarRocks version by executing SQL
select current_version()