/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/input17.q
# · text · 20 lines · 17 code · 3 blank · 0 comment · 0 complexity · 1edf847b40a3c8bc1a4132a34ca664b0 MD5 · raw file
- CREATE TABLE dest1(key INT, value STRING) STORED AS TEXTFILE;
- EXPLAIN
- FROM (
- FROM src_thrift
- SELECT TRANSFORM(src_thrift.aint + src_thrift.lint[0], src_thrift.lintstring[0])
- USING '/bin/cat' AS (tkey, tvalue)
- CLUSTER BY tkey
- ) tmap
- INSERT OVERWRITE TABLE dest1 SELECT tmap.tkey, tmap.tvalue;
- FROM (
- FROM src_thrift
- SELECT TRANSFORM(src_thrift.aint + src_thrift.lint[0], src_thrift.lintstring[0])
- USING '/bin/cat' AS (tkey, tvalue)
- CLUSTER BY tkey
- ) tmap
- INSERT OVERWRITE TABLE dest1 SELECT tmap.tkey, tmap.tvalue;
- SELECT dest1.* FROM dest1;