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 ouverte le 20 juin 2025

Voir sur GitHub
 (3 commentaires) (0 réactions) (1 assigné)Java (1 246 forks)batch import
good first issuetype/bug

Métriques du dépôt

Stars
 (5 717 stars)
Métriques de merge PR
 (Merge moyen 1j 5h) (1 000 PRs mergées en 30 j)

Description

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

Guide contributeur