Files
impala/testdata/workloads/functional-query/queries/QueryTest/seq-writer.test
Nong Li d52a620737 Add support for writing compressed text.
Change-Id: I314b925594801ae4b5c47248d998801aa0b37270
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4205
Tested-by: jenkins
Reviewed-by: Nong Li <nong@cloudera.com>
2014-09-07 22:08:30 -07:00

44 lines
814 B
Plaintext

====
---- QUERY
drop table if exists __seq_write;
====
---- QUERY
SET COMPRESSION_CODEC=NONE;
create table __seq_write (i int, s string, d double)
stored as SEQUENCEFILE;
====
---- QUERY
SET COMPRESSION_CODEC=NONE;
insert into __seq_write select 0, "a", 1.1;
====
---- QUERY
SET COMPRESSION_CODEC=DEFAULT;
insert into __seq_write values (1, "b", 2.2);
====
---- QUERY
SET COMPRESSION_CODEC=SNAPPY;
insert into __seq_write values (2, "c", 3.3);
====
---- QUERY
SET COMPRESSION_CODEC=SNAPPY_BLOCKED;
insert into __seq_write values (3, "d", 4.4);
====
---- QUERY
SET COMPRESSION_CODEC=GZIP;
insert into __seq_write values (4, "e", 5.5);
====
---- QUERY
select * from __seq_write;
---- RESULTS
0,'a',1.1
1,'b',2.2
2,'c',3.3
3,'d',4.4
4,'e',5.5
---- TYPES
INT,STRING,DOUBLE
====
---- QUERY
drop table __seq_write;
====