PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1set hive.auto.convert.join = true;
 2
 3CREATE TABLE dest1(key INT, value STRING) STORED AS TEXTFILE;
 4
 5explain
 6FROM srcpart src1 JOIN src src2 ON (src1.key = src2.key)
 7INSERT OVERWRITE TABLE dest1 SELECT src1.key, src2.value where src1.ds = '2008-04-08' and src1.hr = '12';
 8
 9FROM srcpart src1 JOIN src src2 ON (src1.key = src2.key)
10INSERT OVERWRITE TABLE dest1 SELECT src1.key, src2.value where src1.ds = '2008-04-08' and src1.hr = '12';
11
12
13
14SELECT sum(hash(dest1.key,dest1.value)) FROM dest1;