/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

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