PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
text | 17 lines | 11 code | 6 blank | 0 comment | 0 complexity | b3d3efe3184f62e4ff3cea894d408c97 MD5 | raw file
 1EXPLAIN
 2CREATE TABLE dest1(key INT, value STRING) STORED AS
 3  INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'
 4  OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat';
 5
 6CREATE TABLE dest1(key INT, value STRING) STORED AS
 7  INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat'
 8  OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat';
 9
10DESCRIBE EXTENDED dest1;
11
12FROM src
13INSERT OVERWRITE TABLE dest1 SELECT src.key, src.value WHERE src.key < 10;
14
15SELECT dest1.* FROM dest1;
16
17