blob: 3b888ad0aaa84435fe17837632786b57adf0d3bf [file] [log] [blame]
--! qt:dataset:src1
--! qt:dataset:src
-- SORT_QUERY_RESULTS
CREATE TABLE dest_j1_n18(key INT, value STRING, val2 STRING) STORED AS TEXTFILE;
set hive.auto.convert.join=true;
EXPLAIN
INSERT OVERWRITE TABLE dest_j1_n18
SELECT /*+ MAPJOIN(x) */ x.key, x.value, y.value
FROM src1 x JOIN src y ON (x.key = y.key);
INSERT OVERWRITE TABLE dest_j1_n18
SELECT /*+ MAPJOIN(x) */ x.key, x.value, y.value
FROM src1 x JOIN src y ON (x.key = y.key);
select * from dest_j1_n18 x;