You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/05/16 13:35:13 UTC
[GitHub] [incubator-doris] nextdreamblue commented on issue #9597: [Bug] Some query results from information_schema.columns are incorrect
nextdreamblue commented on issue #9597:
URL: https://github.com/apache/incubator-doris/issues/9597#issuecomment-1127684307
I reproduce this problem like this:
1. create a database
2. create 17 tables like this:
```sql
CREATE TABLE `aaa` (
`aaa` varchar(170) NOT NULL COMMENT "",
`bbb` varchar(100) NOT NULL COMMENT "",
`ccc` varchar(170) NULL COMMENT "",
`ddd` varchar(120) NULL COMMENT "",
`eee` varchar(120) NULL COMMENT "",
`fff` varchar(130) NULL COMMENT "",
`ggg` varchar(170) NULL COMMENT "",
`hhh` varchar(170) NULL COMMENT "",
`jjj` varchar(170) NULL COMMENT "",
`kkk` varchar(170) NULL COMMENT "",
`lll` varchar(170) NULL COMMENT "",
`mmm` varchar(170) NULL COMMENT "",
`nnn` varchar(70) NULL COMMENT "",
`ooo` varchar(140) NULL COMMENT "",
`ppp` varchar(70) NULL COMMENT "",
`qqq` varchar(130) NULL COMMENT "",
`rrr` bigint(20) NULL COMMENT "",
`sss` bigint(20) NULL COMMENT "",
`ttt` decimal(24, 2) NULL COMMENT "",
`uuu` decimal(24, 2) NULL COMMENT "",
`vvv` decimal(24, 2) NULL COMMENT "",
`www` varchar(50) NULL COMMENT "",
`xxx` varchar(190) NULL COMMENT "",
`yyy` varchar(190) NULL COMMENT "",
`zzz` varchar(100) NULL COMMENT "",
`aa` bigint(20) NULL COMMENT "",
`bb` bigint(20) NULL COMMENT "",
`cc` bigint(20) NULL COMMENT "",
`dd` varchar(60) NULL COMMENT "",
`ee` varchar(60) NULL COMMENT "",
`ff` varchar(60) NULL COMMENT "",
`gg` varchar(50) NULL COMMENT "",
`hh` bigint(20) NULL COMMENT "",
`ii` bigint(20) NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(`aaa`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`aaa`) BUCKETS 16
PROPERTIES (
"replication_allocation" = "tag.location.default: 2",
"in_memory" = "false",
"storage_format" = "V2"
);
```
i create 17 tables by this sql with other name, and get:
MySQL [aaa]> show tables;
+---------------+
| Tables_in_aaa |
+---------------+
| ooo |
| eee |
| jjj |
| ggg |
| lll |
| qqq |
| bbb |
| ddd |
| iii |
| nnn |
| kkk |
| ppp |
| aaa |
| fff |
| ccc |
| hhh |
| mmm |
+---------------+
17 rows in set (0.00 sec)
3. create 5 database total, and get
MySQL [aaa]> show databases;
+--------------------+
| Database |
+--------------------+
| aaa |
| bbb |
| ccc |
| ddd |
| eee |
| doris_audit_db__ |
| information_schema |
+--------------------+
7 rows in set (0.00 sec)
4. and select from information_schema.columns where xxx will return empty.
MySQL [eee]> select * from information_schema.columns where table_schema='aaa';
Empty set (0.03 sec)
--
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