使用clickhouse外表Uint64映射报错

【详述】ddl新建clickhouse外部表 然后select * 显示错误
【StarRocks版本】StarRocks-3.0.0-rc02

create external resource resource_ck5
properties (
“type”=“jdbc”,
“user”=“user1”,
“password”=“passwd1”,
“jdbc_uri”=“jdbc:clickhouse://4.4.4.4:8123/tb1?allowPublicKeyRetrieval=false”,
“driver_url”=“http://pc1/clickhouse-jdbc-0.4.6-all.jar”,
“driver_class”=“com.clickhouse.jdbc.ClickHouseDriver”
);

CREATE EXTERNAL TABLE ck1 (
device_id String
,report_date BIGINT NULL
) ENGINE=JDBC
COMMENT “JDBC”
PROPERTIES (
“resource” = “resource_ck5”,
“table” = “tb11”
);

select * from ck1 报错:
ERROR 1064 (HY000): Type is not supported on column[report_date], JDBC result type is [java.math.BigInteger]

uint64不能用bigint接?

难道是因为我的starrocks版本太低?

邮箱: yangyong2143@gmail.com

ck里面用的UInt64吗?


UInt64超过bigint的限制了,你用largeint试试

我看3.1版本支持了 BigInt了 https://github.com/StarRocks/starrocks/pull/30633

1赞

新加的功能,等下个3.1 版本发布可以升级下,或者自己手动patch下