@@ -59,6 +59,12 @@ VALUES
59
59
' {"id":5,"name":"bigquery","tags":["innovative","cost-efficient"],"pricings":[{"type":"Flat Rate","price":"Monthly"},{"type":"Flex","price":"Per query"}]}'
60
60
);
61
61
62
+ INSERT INTO test SELECT * FROM test;
63
+ INSERT INTO test SELECT * FROM test;
64
+ INSERT INTO test SELECT * FROM test;
65
+ INSERT INTO test SELECT * FROM test;
66
+ INSERT INTO test SELECT * FROM test;
67
+
62
68
-- Refresh the virtual columns
63
69
REFRESH VIRTUAL COLUMN FOR test;
64
70
@@ -78,14 +84,14 @@ Exchange
78
84
└── TableScan
79
85
├── table: default .book_db .test
80
86
├── output columns: [val[' name' ] (# 2), val['tags'][0] (#3), val['pricings'][0]['type'] (#4)]
81
- ├── read rows: 5
82
- ├── read size: < 1 KiB
83
- ├── partitions total: 1
84
- ├── partitions scanned: 1
85
- ├── pruning stats: [segments: < range pruning: 1 to 1 > , blocks: < range pruning: 1 to 1 > ]
87
+ ├── read rows: 160
88
+ ├── read size: 4 . 96 KiB
89
+ ├── partitions total: 16
90
+ ├── partitions scanned: 16
91
+ ├── pruning stats: [segments: < range pruning: 6 to 6 > , blocks: < range pruning: 16 to 16 > ]
86
92
├── push downs: [filters: [], limit : NONE]
87
93
├── virtual columns: [val[' name' ], val[' pricings' ][0 ][' type' ], val[' tags' ][0 ]]
88
- └── estimated rows: 5 .00
94
+ └── estimated rows: 160 .00
89
95
90
96
-- Explain the query execution plan for selecting only the 'name' field from the table.
91
97
EXPLAIN
@@ -101,14 +107,14 @@ Exchange
101
107
└── TableScan
102
108
├── table: default .book_db .test
103
109
├── output columns: [val[' name' ] (# 2)]
104
- ├── read rows: 5
105
- ├── read size: < 1 KiB
106
- ├── partitions total: 1
107
- ├── partitions scanned: 1
108
- ├── pruning stats: [segments: < range pruning: 1 to 1 > , blocks: < range pruning: 1 to 1 > ]
110
+ ├── read rows: 160
111
+ ├── read size: 1 . 70 KiB
112
+ ├── partitions total: 16
113
+ ├── partitions scanned: 16
114
+ ├── pruning stats: [segments: < range pruning: 6 to 6 > , blocks: < range pruning: 16 to 16 > ]
109
115
├── push downs: [filters: [], limit : NONE]
110
116
├── virtual columns: [val[' name' ]]
111
- └── estimated rows: 5 .00
117
+ └── estimated rows: 160 .00
112
118
113
119
-- Display all the virtual columns defined in the system.
114
120
SHOW VIRTUAL COLUMNS;
0 commit comments