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

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

#
text | 19 lines | 16 code | 3 blank | 0 comment | 0 complexity | 4fa83dc11ba89942f051edfe942dec95 MD5 | raw file
 1set hive.optimize.ppd=true;
 2
 3EXPLAIN EXTENDED
 4FROM (
 5  FROM srcpart src
 6  SELECT TRANSFORM(src.ds, src.key, src.value)
 7         USING '/bin/cat' AS (ds, tkey, tvalue) 
 8  CLUSTER BY tkey 
 9) tmap
10SELECT tmap.tkey, tmap.tvalue WHERE tmap.tkey < 100 AND tmap.ds = '2008-04-08';
11
12FROM (
13  FROM srcpart src
14  SELECT TRANSFORM(src.ds, src.key, src.value)
15         USING '/bin/cat' AS (ds, tkey, tvalue) 
16  CLUSTER BY tkey 
17) tmap
18SELECT tmap.tkey, tmap.tvalue WHERE tmap.tkey < 100 AND tmap.ds = '2008-04-08';
19