|
| 1 | +PREHOOK: query: drop table if exists tbl_ice |
| 2 | +PREHOOK: type: DROPTABLE |
| 3 | +PREHOOK: Output: database:default |
| 4 | +POSTHOOK: query: drop table if exists tbl_ice |
| 5 | +POSTHOOK: type: DROPTABLE |
| 6 | +POSTHOOK: Output: database:default |
| 7 | +PREHOOK: query: drop table if exists tbl_ice_v2 |
| 8 | +PREHOOK: type: DROPTABLE |
| 9 | +PREHOOK: Output: database:default |
| 10 | +POSTHOOK: query: drop table if exists tbl_ice_v2 |
| 11 | +POSTHOOK: type: DROPTABLE |
| 12 | +POSTHOOK: Output: database:default |
| 13 | +PREHOOK: query: create external table tbl_ice(a int, b string, c int) stored by iceberg stored as orc tblproperties ('format-version'='1') |
| 14 | +PREHOOK: type: CREATETABLE |
| 15 | +PREHOOK: Output: database:default |
| 16 | +PREHOOK: Output: default@tbl_ice |
| 17 | +POSTHOOK: query: create external table tbl_ice(a int, b string, c int) stored by iceberg stored as orc tblproperties ('format-version'='1') |
| 18 | +POSTHOOK: type: CREATETABLE |
| 19 | +POSTHOOK: Output: database:default |
| 20 | +POSTHOOK: Output: default@tbl_ice |
| 21 | +PREHOOK: query: create external table tbl_ice_v2(d int, e string, f int) stored by iceberg stored as orc tblproperties ('format-version'='2') |
| 22 | +PREHOOK: type: CREATETABLE |
| 23 | +PREHOOK: Output: database:default |
| 24 | +PREHOOK: Output: default@tbl_ice_v2 |
| 25 | +POSTHOOK: query: create external table tbl_ice_v2(d int, e string, f int) stored by iceberg stored as orc tblproperties ('format-version'='2') |
| 26 | +POSTHOOK: type: CREATETABLE |
| 27 | +POSTHOOK: Output: database:default |
| 28 | +POSTHOOK: Output: default@tbl_ice_v2 |
| 29 | +PREHOOK: query: insert into tbl_ice_v2 values (1, 'one v2', 50), (4, 'four v2', 53), (5, 'five v2', 54) |
| 30 | +PREHOOK: type: QUERY |
| 31 | +PREHOOK: Input: _dummy_database@_dummy_table |
| 32 | +PREHOOK: Output: default@tbl_ice_v2 |
| 33 | +POSTHOOK: query: insert into tbl_ice_v2 values (1, 'one v2', 50), (4, 'four v2', 53), (5, 'five v2', 54) |
| 34 | +POSTHOOK: type: QUERY |
| 35 | +POSTHOOK: Input: _dummy_database@_dummy_table |
| 36 | +POSTHOOK: Output: default@tbl_ice_v2 |
| 37 | +PREHOOK: query: create materialized view mat1 |
| 38 | + stored by iceberg stored as orc |
| 39 | +as |
| 40 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice |
| 41 | +join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 42 | +PREHOOK: type: CREATE_MATERIALIZED_VIEW |
| 43 | +PREHOOK: Input: default@tbl_ice |
| 44 | +PREHOOK: Input: default@tbl_ice_v2 |
| 45 | +PREHOOK: Output: database:default |
| 46 | +PREHOOK: Output: default@mat1 |
| 47 | +#### A masked pattern was here #### |
| 48 | +POSTHOOK: query: create materialized view mat1 |
| 49 | + stored by iceberg stored as orc |
| 50 | +as |
| 51 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice |
| 52 | +join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 53 | +POSTHOOK: type: CREATE_MATERIALIZED_VIEW |
| 54 | +POSTHOOK: Input: default@tbl_ice |
| 55 | +POSTHOOK: Input: default@tbl_ice_v2 |
| 56 | +POSTHOOK: Output: database:default |
| 57 | +POSTHOOK: Output: default@mat1 |
| 58 | +#### A masked pattern was here #### |
| 59 | +POSTHOOK: Lineage: mat1.b SIMPLE [(tbl_ice)tbl_ice.FieldSchema(name:b, type:string, comment:null), ] |
| 60 | +POSTHOOK: Lineage: mat1.c SIMPLE [(tbl_ice)tbl_ice.FieldSchema(name:c, type:int, comment:null), ] |
| 61 | +POSTHOOK: Lineage: mat1.e SIMPLE [(tbl_ice_v2)tbl_ice_v2.FieldSchema(name:e, type:string, comment:null), ] |
| 62 | +PREHOOK: query: select * from mat1 |
| 63 | +PREHOOK: type: QUERY |
| 64 | +PREHOOK: Input: default@mat1 |
| 65 | +#### A masked pattern was here #### |
| 66 | +POSTHOOK: query: select * from mat1 |
| 67 | +POSTHOOK: type: QUERY |
| 68 | +POSTHOOK: Input: default@mat1 |
| 69 | +#### A masked pattern was here #### |
| 70 | +PREHOOK: query: explain cbo |
| 71 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 72 | +PREHOOK: type: QUERY |
| 73 | +PREHOOK: Input: default@mat1 |
| 74 | +PREHOOK: Input: default@tbl_ice |
| 75 | +PREHOOK: Input: default@tbl_ice_v2 |
| 76 | +#### A masked pattern was here #### |
| 77 | +POSTHOOK: query: explain cbo |
| 78 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 79 | +POSTHOOK: type: QUERY |
| 80 | +POSTHOOK: Input: default@mat1 |
| 81 | +POSTHOOK: Input: default@tbl_ice |
| 82 | +POSTHOOK: Input: default@tbl_ice_v2 |
| 83 | +#### A masked pattern was here #### |
| 84 | +CBO PLAN: |
| 85 | +HiveProject(tbl_ice.b=[$0], tbl_ice.c=[$1], tbl_ice_v2.e=[$2]) |
| 86 | + HiveTableScan(table=[[default, mat1]], table:alias=[default.mat1]) |
| 87 | + |
| 88 | +PREHOOK: query: insert into tbl_ice values (1, 'one', 50), (2, 'two', 51), (3, 'three', 52), (4, 'four', 53), (5, 'five', 54) |
| 89 | +PREHOOK: type: QUERY |
| 90 | +PREHOOK: Input: _dummy_database@_dummy_table |
| 91 | +PREHOOK: Output: default@tbl_ice |
| 92 | +POSTHOOK: query: insert into tbl_ice values (1, 'one', 50), (2, 'two', 51), (3, 'three', 52), (4, 'four', 53), (5, 'five', 54) |
| 93 | +POSTHOOK: type: QUERY |
| 94 | +POSTHOOK: Input: _dummy_database@_dummy_table |
| 95 | +POSTHOOK: Output: default@tbl_ice |
| 96 | +PREHOOK: query: explain cbo |
| 97 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 98 | +PREHOOK: type: QUERY |
| 99 | +PREHOOK: Input: default@tbl_ice |
| 100 | +PREHOOK: Input: default@tbl_ice_v2 |
| 101 | +#### A masked pattern was here #### |
| 102 | +POSTHOOK: query: explain cbo |
| 103 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 104 | +POSTHOOK: type: QUERY |
| 105 | +POSTHOOK: Input: default@tbl_ice |
| 106 | +POSTHOOK: Input: default@tbl_ice_v2 |
| 107 | +#### A masked pattern was here #### |
| 108 | +CBO PLAN: |
| 109 | +HiveProject(tbl_ice.b=[$1], tbl_ice.c=[$2], tbl_ice_v2.e=[$4]) |
| 110 | + HiveJoin(condition=[=($0, $3)], joinType=[inner], algorithm=[none], cost=[not available]) |
| 111 | + HiveProject(a=[$0], b=[$1], c=[$2]) |
| 112 | + HiveFilter(condition=[AND(>($2, 52), IS NOT NULL($0))]) |
| 113 | + HiveTableScan(table=[[default, tbl_ice]], table:alias=[tbl_ice]) |
| 114 | + HiveProject(d=[$0], e=[$1]) |
| 115 | + HiveFilter(condition=[IS NOT NULL($0)]) |
| 116 | + HiveTableScan(table=[[default, tbl_ice_v2]], table:alias=[tbl_ice_v2]) |
| 117 | + |
| 118 | +PREHOOK: query: alter materialized view mat1 rebuild |
| 119 | +PREHOOK: type: ALTER_MATERIALIZED_VIEW_REBUILD |
| 120 | +PREHOOK: Input: default@tbl_ice |
| 121 | +PREHOOK: Input: default@tbl_ice_v2 |
| 122 | +PREHOOK: Output: default@mat1 |
| 123 | +POSTHOOK: query: alter materialized view mat1 rebuild |
| 124 | +POSTHOOK: type: ALTER_MATERIALIZED_VIEW_REBUILD |
| 125 | +POSTHOOK: Input: default@tbl_ice |
| 126 | +POSTHOOK: Input: default@tbl_ice_v2 |
| 127 | +POSTHOOK: Output: default@mat1 |
| 128 | +PREHOOK: query: select * from mat1 |
| 129 | +PREHOOK: type: QUERY |
| 130 | +PREHOOK: Input: default@mat1 |
| 131 | +#### A masked pattern was here #### |
| 132 | +POSTHOOK: query: select * from mat1 |
| 133 | +POSTHOOK: type: QUERY |
| 134 | +POSTHOOK: Input: default@mat1 |
| 135 | +#### A masked pattern was here #### |
| 136 | +five 54 five v2 |
| 137 | +four 53 four v2 |
| 138 | +PREHOOK: query: explain cbo |
| 139 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 140 | +group by tbl_ice.b, tbl_ice.c, tbl_ice_v2.e |
| 141 | +PREHOOK: type: QUERY |
| 142 | +PREHOOK: Input: default@mat1 |
| 143 | +PREHOOK: Input: default@tbl_ice |
| 144 | +PREHOOK: Input: default@tbl_ice_v2 |
| 145 | +#### A masked pattern was here #### |
| 146 | +POSTHOOK: query: explain cbo |
| 147 | +select tbl_ice.b, tbl_ice.c, tbl_ice_v2.e from tbl_ice join tbl_ice_v2 on tbl_ice.a=tbl_ice_v2.d where tbl_ice.c > 52 |
| 148 | +group by tbl_ice.b, tbl_ice.c, tbl_ice_v2.e |
| 149 | +POSTHOOK: type: QUERY |
| 150 | +POSTHOOK: Input: default@mat1 |
| 151 | +POSTHOOK: Input: default@tbl_ice |
| 152 | +POSTHOOK: Input: default@tbl_ice_v2 |
| 153 | +#### A masked pattern was here #### |
| 154 | +CBO PLAN: |
| 155 | +HiveProject(tbl_ice.b=[$0], tbl_ice.c=[$1], tbl_ice_v2.e=[$2]) |
| 156 | + HiveAggregate(group=[{0, 1, 2}]) |
| 157 | + HiveTableScan(table=[[default, mat1]], table:alias=[default.mat1]) |
| 158 | + |
0 commit comments