Closed liunaijie closed 2 weeks ago
another thing we can improve is starrocks jdbc dialect use md5sum_numeric
as hash function, maybe we can replace with murmur_hash3_32
We should fix it before 2.3.8 release.
How about change StarRocksDialect
's dialet name? For example: Jdbc-StarRocks
. Because the name of all dialet come from compatibleMode
is useless.
How about change
StarRocksDialect
's dialet name? For example:Jdbc-StarRocks
. Because the name of all dialet come fromcompatibleMode
is useless.
In my hot fix, i delete the StarRocksDialect
class's dialectName
method implemention, then it will call parent MysqlDialect
to create MySqlCatalog
.
Change StarRocksDialect
dialect name to Jdbc-StarRocks
it need to create Jdbc-StarRocks
catalog and extends MysqlCatalog
How about change
StarRocksDialect
's dialet name? For example:Jdbc-StarRocks
. Because the name of all dialet come fromcompatibleMode
is useless.In my hot fix, i delete the
StarRocksDialect
class'sdialectName
method implemention, then it will call parentMysqlDialect
to createMySqlCatalog
.Change
StarRocksDialect
dialect name toJdbc-StarRocks
it need to createJdbc-StarRocks
catalog and extendsMysqlCatalog
oh. You are right.
Search before asking
What happened
this pr https://github.com/apache/seatunnel/pull/7294 added StarRocks JDBC dialect.
It will has some issue when both JDBC connector and StarRocks connector exist.
jdbc catalog will use
dialect.dialectName()
as factoryIdentifier to load Catalog.StarRocks
catalog in created inStarRocks
connector, so ifStarRocks
connector exist, it will read an error Catalog getClassCastException
exceptionIf not exist, it will use loading tables from jdbc directly, the e2e test case is work because of this.
SeaTunnel Version
dev
SeaTunnel Config
Running Command
Error Exception