|
| 1 | +PREHOOK: query: create table table_1 (id1 int, id2 int) |
| 2 | +PREHOOK: type: CREATETABLE |
| 3 | +PREHOOK: Output: database:default |
| 4 | +PREHOOK: Output: default@table_1 |
| 5 | +PREHOOK: query: create table table_2 (id1 int, id2 int) |
| 6 | +PREHOOK: type: CREATETABLE |
| 7 | +PREHOOK: Output: database:default |
| 8 | +PREHOOK: Output: default@table_2 |
| 9 | +PREHOOK: query: create table table_3 as |
| 10 | +select id1 from table_1 t1 where t1.id2 = 1 |
| 11 | +union all |
| 12 | +select id1 from table_2 t1 where t1.id2 = 2 |
| 13 | +PREHOOK: type: CREATETABLE_AS_SELECT |
| 14 | +PREHOOK: Input: default@table_1 |
| 15 | +PREHOOK: Input: default@table_2 |
| 16 | +PREHOOK: Output: database:default |
| 17 | +PREHOOK: Output: default@table_3 |
| 18 | +Result schema has 1 fields, but we don't get as many dependencies |
| 19 | +{"version":"1.0","engine":"tez","database":"default","hash":"24a0f860f60a1b7d5f350fd8eb164a37","queryText":"create table table_3 as\nselect id1 from table_1 t1 where t1.id2 = 1\nunion all\nselect id1 from table_2 t1 where t1.id2 = 2","edges":[{"sources":[1,2],"targets":[0],"expression":"id1","edgeType":"PROJECTION"},{"sources":[3],"targets":[0],"expression":"(t1.id2 = 1)","edgeType":"PREDICATE"},{"sources":[4],"targets":[0],"expression":"(t1.id2 = 2)","edgeType":"PREDICATE"}],"vertices":[{"id":0,"vertexType":"COLUMN","vertexId":"default.table_3.id1"},{"id":1,"vertexType":"COLUMN","vertexId":"default.table_1.id1"},{"id":2,"vertexType":"COLUMN","vertexId":"default.table_2.id1"},{"id":3,"vertexType":"COLUMN","vertexId":"default.table_1.id2"},{"id":4,"vertexType":"COLUMN","vertexId":"default.table_2.id2"}]} |
| 20 | +PREHOOK: query: create table table_4 as |
| 21 | +select id1 from (select id1,id2 from table_1 t1 where t1.id1 = 3 ) t1 where t1.id2 = 1 |
| 22 | +union all |
| 23 | +select id1 from table_2 t1 where t1.id2 = 2 |
| 24 | +PREHOOK: type: CREATETABLE_AS_SELECT |
| 25 | +PREHOOK: Input: default@table_1 |
| 26 | +PREHOOK: Input: default@table_2 |
| 27 | +PREHOOK: Output: database:default |
| 28 | +PREHOOK: Output: default@table_4 |
| 29 | +Result schema has 1 fields, but we don't get as many dependencies |
| 30 | +{"version":"1.0","engine":"tez","database":"default","hash":"761d0cf34076cec77766bf7af8f1cbe9","queryText":"create table table_4 as\nselect id1 from (select id1,id2 from table_1 t1 where t1.id1 = 3 ) t1 where t1.id2 = 1\nunion all\nselect id1 from table_2 t1 where t1.id2 = 2","edges":[{"sources":[1],"targets":[0],"expression":"id1","edgeType":"PROJECTION"},{"sources":[2,3],"targets":[0],"expression":"((t1.id1 = 3) and (t1.id2 = 1))","edgeType":"PREDICATE"},{"sources":[4],"targets":[0],"expression":"(t1.id2 = 2)","edgeType":"PREDICATE"}],"vertices":[{"id":0,"vertexType":"COLUMN","vertexId":"default.table_4.id1"},{"id":1,"vertexType":"COLUMN","vertexId":"default.table_2.id1"},{"id":2,"vertexType":"COLUMN","vertexId":"default.table_1.id1"},{"id":3,"vertexType":"COLUMN","vertexId":"default.table_1.id2"},{"id":4,"vertexType":"COLUMN","vertexId":"default.table_2.id2"}]} |
| 31 | +PREHOOK: query: create table table_5 as |
| 32 | +select t.id1 from |
| 33 | +(select id1 from table_1 t1 where t1.id2 = 1) t |
| 34 | +join table_2 t1 on t.id1 = t1.id2 |
| 35 | +PREHOOK: type: CREATETABLE_AS_SELECT |
| 36 | +PREHOOK: Input: default@table_1 |
| 37 | +PREHOOK: Input: default@table_2 |
| 38 | +PREHOOK: Output: database:default |
| 39 | +PREHOOK: Output: default@table_5 |
| 40 | +Result schema has 1 fields, but we don't get as many dependencies |
| 41 | +{"version":"1.0","engine":"tez","database":"default","hash":"615bb67f6ff2dd50695bffd14c296677","queryText":"create table table_5 as\nselect t.id1 from\n(select id1 from table_1 t1 where t1.id2 = 1) t\njoin table_2 t1 on t.id1 = t1.id2","edges":[{"sources":[1],"targets":[0],"edgeType":"PROJECTION"},{"sources":[2,1],"targets":[0],"expression":"((t1.id2 = 1) and t1.id1 is not null)","edgeType":"PREDICATE"},{"sources":[1,3],"targets":[0],"expression":"(t1.id1 = t1.id2)","edgeType":"PREDICATE"},{"sources":[3],"targets":[0],"expression":"t1.id2 is not null","edgeType":"PREDICATE"}],"vertices":[{"id":0,"vertexType":"COLUMN","vertexId":"default.table_5.id1"},{"id":1,"vertexType":"COLUMN","vertexId":"default.table_1.id1"},{"id":2,"vertexType":"COLUMN","vertexId":"default.table_1.id2"},{"id":3,"vertexType":"COLUMN","vertexId":"default.table_2.id2"}]} |
0 commit comments