/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/auto_join9.q
# · text · 14 lines · 8 code · 6 blank · 0 comment · 0 complexity · 88c2c1a7dcdcbf1a09f24126a026231b MD5 · raw file
- set hive.auto.convert.join = true;
- CREATE TABLE dest1(key INT, value STRING) STORED AS TEXTFILE;
- explain
- FROM srcpart src1 JOIN src src2 ON (src1.key = src2.key)
- INSERT OVERWRITE TABLE dest1 SELECT src1.key, src2.value where src1.ds = '2008-04-08' and src1.hr = '12';
- FROM srcpart src1 JOIN src src2 ON (src1.key = src2.key)
- INSERT OVERWRITE TABLE dest1 SELECT src1.key, src2.value where src1.ds = '2008-04-08' and src1.hr = '12';
- SELECT sum(hash(dest1.key,dest1.value)) FROM dest1;