StarRocks/starrocks

[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 创建于 2025年6月20日

在 GitHub 查看
 (3 评论) (0 反应) (1 负责人)Java (5,717 star) (1,246 fork)batch import
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

Image

StarRocks version (Required)

  • You can get the StarRocks version by executing SQL select current_version()

Image

贡献者指南