PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  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;