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

/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/auto_join3.q

#
text | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | e5f705a4e9b89931431ab13c286862c6 MD5 | raw file
 1set hive.auto.convert.join = true;
 2
 3CREATE TABLE dest1(key INT, value STRING) STORED AS TEXTFILE;
 4
 5explain
 6FROM src src1 JOIN src src2 ON (src1.key = src2.key) JOIN src src3 ON (src1.key = src3.key)
 7INSERT OVERWRITE TABLE dest1 SELECT src1.key, src3.value;
 8
 9FROM src src1 JOIN src src2 ON (src1.key = src2.key) JOIN src src3 ON (src1.key = src3.key)
10INSERT OVERWRITE TABLE dest1 SELECT src1.key, src3.value;
11
12SELECT sum(hash(dest1.key,dest1.value)) FROM dest1;