You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "GoGoWen (via GitHub)" <gi...@apache.org> on 2023/07/06 12:38:32 UTC
[GitHub] [doris] GoGoWen opened a new issue, #21593: [Bug] (MULTI_CATALOG) select hit wrong table in another catalog
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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] GoGoWen commented on issue #21593: [Bug] (MULTI_CATALOG) select hit wrong table in another catalog
Posted by "GoGoWen (via GitHub)" <gi...@apache.org>.
GoGoWen commented on issue #21593:
URL: https://github.com/apache/doris/issues/21593#issuecomment-1667271093
fixed by #22074 , so close this pr
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] GoGoWen closed issue #21593: [Bug] (MULTI_CATALOG) select hit wrong table in another catalog
Posted by "GoGoWen (via GitHub)" <gi...@apache.org>.
GoGoWen closed issue #21593: [Bug] (MULTI_CATALOG) select hit wrong table in another catalog
URL: https://github.com/apache/doris/issues/21593
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org