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

Aberta

#60.124 aberto em 20 de jun. de 2025

 (3 comentários) (0 reação) (1 responsável)Java (1.246 forks)batch import
good first issuetype/bug

Métricas do repositório

Stars
 (5.717 estrelas)
Métricas de merge de PR
 (Mesclagem média 1d 5h) (1.000 fundiu PRs em 30d)

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

Guia do colaborador