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

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

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