GoGoWen opened a new issue, #21593: URL: https://github.com/apache/doris/issues/21593
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version master ### What's Wrong? 1, create database t1 2, create table like below CREATE TABLE `metric_table` ( `datekey` int(11) NULL, `hour` int(11) NULL, `device_id` bitmap BITMAP_UNION NULL ) ENGINE=OLAP AGGREGATE KEY(`datekey`, `hour`) COMMENT 'OLAP' DISTRIBUTED BY HASH(`datekey`, `hour`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "storage_format" = "V2", "light_schema_change" = "true", "disable_auto_compaction" = "false", "enable_single_replica_compaction" = "false" ); 3, create a jdbc catalog with below CREATE CATALOG doris_catalog PROPERTIES ( "user" = "root", "type" = "jdbc", "password" = "", "jdbc_url" = "jdbc:mysql://self_cluster:port?useSSL=false", "driver_url" = "http://storage.jd.local/ads-soft/Narwal/BJ/mysql-connector-java-5.1.49.jar", "driver_class" = "com.mysql.jdbc.Driver" ) 4, switch doris_catalog 5, use t1 6, select * from metric_table; now step 6 will query the table in "internal" catalog instead of "doris_catalog". ### What You Expected? should query the table in "doris_catalog" catalog. ### How to Reproduce? 1, create database t1 2, create table like below CREATE TABLE `metric_table` ( `datekey` int(11) NULL, `hour` int(11) NULL, `device_id` bitmap BITMAP_UNION NULL ) ENGINE=OLAP AGGREGATE KEY(`datekey`, `hour`) COMMENT 'OLAP' DISTRIBUTED BY HASH(`datekey`, `hour`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "storage_format" = "V2", "light_schema_change" = "true", "disable_auto_compaction" = "false", "enable_single_replica_compaction" = "false" ); 3, create a jdbc catalog with below CREATE CATALOG doris_catalog PROPERTIES ( "user" = "root", "type" = "jdbc", "password" = "", "jdbc_url" = "jdbc:mysql://self_cluster:port?useSSL=false", "driver_url" = "http://storage.jd.local/ads-soft/Narwal/BJ/mysql-connector-java-5.1.49.jar", "driver_class" = "com.mysql.jdbc.Driver" ) 4, switch doris_catalog 5, use t1 6, select * from metric_table; ### Anything Else? no ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
