Files
impala/testdata/workloads/functional-query/queries/QueryTest/seq-writer.test
Victor Bittorf 3f75bd6735 Reintroduce SEQUENCEFILE writer tests
The sequence writer test had an issue with zlib on certain cluster machines, making
this a flaky test. This has passed several times locally and in private builds. This
re-enables the test because the failures could not be produced in private builds.

Change-Id: I0aeea3a2d000e711e5a84427a7b40592e1eef75b
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5077
Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com>
Tested-by: jenkins
2014-11-17 11:19:16 -08:00

56 lines
1.2 KiB
Plaintext

====
---- QUERY
drop table if exists __seq_write;
====
---- QUERY
SET COMPRESSION_CODEC=NONE;
SET ALLOW_UNSUPPORTED_FORMATS=1;
create table __seq_write (i int, s string, d double)
stored as SEQUENCEFILE;
====
---- QUERY
SET COMPRESSION_CODEC=NONE;
SET ALLOW_UNSUPPORTED_FORMATS=1;
insert into __seq_write select 0, "a", 1.1;
====
---- QUERY
SET COMPRESSION_CODEC=DEFAULT;
SET ALLOW_UNSUPPORTED_FORMATS=1;
insert into __seq_write values (1, "b", 2.2);
====
---- QUERY
SET COMPRESSION_CODEC=SNAPPY;
SET ALLOW_UNSUPPORTED_FORMATS=1;
insert into __seq_write values (2, "c", 3.3);
====
---- QUERY
SET COMPRESSION_CODEC=SNAPPY_BLOCKED;
SET ALLOW_UNSUPPORTED_FORMATS=1;
insert into __seq_write values (3, "d", 4.4);
====
---- QUERY
SET COMPRESSION_CODEC=GZIP;
SET ALLOW_UNSUPPORTED_FORMATS=1;
insert into __seq_write values (4, "e", 5.5);
====
---- QUERY
SET ALLOW_UNSUPPORTED_FORMATS=0;
insert into __seq_write values (4, "e", 5.5);
---- CATCH
Writing to table format SEQUENCE_FILE is not supported. Use query option
====
---- 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;
====