@@ -11,42 +11,45 @@ statement ok
1111CREATE TABLE showcolumn.t2(c1 int) ENGINE = Null
1212
1313statement ok
14- CREATE TABLE showcolumn.t3(c1 int null default null , c2 Datetime, c3 String Default 'c3') ENGINE = Null;
14+ CREATE TABLE showcolumn.t3(c1 int null default 4 , c2 Datetime default '2022-02-02 12:00:00' , c3 String Default 'c3') ENGINE = Null;
1515
1616query TTTTTT
17- SHOW COLUMNS FROM showcolumn.t3
17+ SHOW COLUMNS FROM t3 FROM showcolumn
1818----
19- c1 Nullable(Int32) YES INT DEFAULT NULL
20- c2 Timestamp NO TIMESTAMP (empty) (empty)
21- c3 String NO VARCHAR DEFAULT 'c3'
19+ c1 INT YES 4 NULL NULL
20+ c2 TIMESTAMP NO '2022-02-02 12:00:00' NULL NULL
21+ c3 VARCHAR NO 'c3' NULL NULL
2222
2323statement ok
2424use showcolumn
2525
2626query TTTTTTT
2727SHOW FULL COLUMNS IN t3
2828----
29- c1 Nullable(Int32) YES INT DEFAULT NULL (empty)
30- c2 Timestamp NO TIMESTAMP (empty) (empty) (empty)
31- c3 String NO VARCHAR DEFAULT 'c3' (empty)
29+ c1 INT YES 4 NULL NULL NULL NULL NULL
30+ c2 TIMESTAMP NO '2022-02-02 12:00:00' NULL NULL NULL NULL NULL
31+ c3 VARCHAR NO 'c3' NULL NULL NULL NULL NULL
3232
3333query T
3434explain show full columns in t3
3535----
3636Sort
3737├── sort keys: [database ASC NULLS LAST, table ASC NULLS LAST, name ASC NULLS LAST]
3838├── estimated rows: 0.00
39- └── Filter
40- ├── filters : [columns.database (#1) = "showcolumn", columns.table (#2) = "t3" ]
39+ └── EvalScalar
40+ ├── expressions : [NULL, NULL, NULL, NULL, NULL ]
4141 ├── estimated rows: 0.00
42- └── TableScan
43- ├── table: default.system.columns
44- ├── read rows: 0
45- ├── read bytes: 0
46- ├── partitions total: 0
47- ├── partitions scanned: 0
48- ├── push downs: [filters: [columns.database (#1) = "showcolumn" AND columns.table (#2) = "t3"], limit: NONE]
49- └── estimated rows: 0.00
42+ └── Filter
43+ ├── filters: [columns.table_schema (#1) = "showcolumn", columns.table_name (#2) = "t3"]
44+ ├── estimated rows: 0.00
45+ └── TableScan
46+ ├── table: default.system.columns
47+ ├── read rows: 0
48+ ├── read bytes: 0
49+ ├── partitions total: 0
50+ ├── partitions scanned: 0
51+ ├── push downs: [filters: [columns.table_schema (#1) = "showcolumn" AND columns.table_name (#2) = "t3"], limit: NONE]
52+ └── estimated rows: 0.00
5053
5154statement ok
5255DROP DATABASE showcolumn
0 commit comments