Files
impala/testdata/workloads/functional-query/queries/DataErrorsTest/hdfs-rcfile-scan-node-errors.test
Lenni Kuff ef48f65e76 Add test framework for running Impala query tests via Python
This is the first set of changes required to start getting our functional test
infrastructure moved from JUnit to Python. After investigating a number of
option, I decided to go with a python test executor named py.test
(http://pytest.org/). It is very flexible, open source (MIT licensed), and will
enable us to do some cool things like parallel test execution.

As part of this change, we now use our "test vectors" for query test execution.
This will be very nice because it means if load the "core" dataset you know you
will be able to run the "core" query tests (specified by --exploration_strategy
when running the tests).

You will see that now each combination of table format + query exec options is
treated like an individual test case. this will make it much easier to debug
exactly where something failed.

These new tests can be run using the script at tests/run-tests.sh
2014-01-08 10:46:50 -08:00

124 lines
5.5 KiB
Plaintext

====
---- QUERY
select id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col from alltypeserror_rc
---- ERRORS
Error converting column: 1 TO BOOL
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 1,errfalse,,1,1,10,1.000000,10.100000,01/01/09,1
Error converting column: 2 TO TINYINT
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 2,true,err2,,2,20,2.000000,20.200000,01/01/09,2
Error converting column: 3 TO SMALLINT
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 3,false,3,err3,,30,3.000000,30.300000,01/01/09,3
Error converting column: 4 TO INT
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 4,true,4,4,err4,,4.000000,40.400000,01/01/09,4
Error converting column: 5 TO BIGINT
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 5,false,5,5,5,err50,,50.500000,01/01/09,5
Error converting column: 6 TO FLOAT
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 6,true,6,6,6,60,err6.000000,,01/01/09,6
Error converting column: 7 TO DOUBLE
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 7,,,7,7,70,7.000000,err70.700000,01/01/09,7
Error converting column: 1 TO BOOL
Error converting column: 2 TO TINYINT
Error converting column: 3 TO SMALLINT
Error converting column: 4 TO INT
Error converting column: 5 TO BIGINT
Error converting column: 6 TO FLOAT
Error converting column: 7 TO DOUBLE
file: alltypeserror_rc/year=2009/month=1/000001_0
line: 9,errtrue,err9,err9,err9,err90,err9.000000,err90.900000,01/01/09,9
Error converting column: 6 TO FLOAT
Error converting column: 7 TO DOUBLE
file: alltypeserror_rc/year=2009/month=2/000002_0
line: 13,false,3,3,,,xyz3.000000,xyz30.300000,02/01/09,3
Error converting column: 2 TO TINYINT
file: alltypeserror_rc/year=2009/month=2/000002_0
line: 15,false,xyz5,5,5,50,5.000000,50.500000,02/01/09,5
Error converting column: 7 TO DOUBLE
file: alltypeserror_rc/year=2009/month=2/000002_0
line: 17,false,7,7,7,70,7.000000,xyz70.700000,02/01/09,7
Error converting column: 3 TO SMALLINT
file: alltypeserror_rc/year=2009/month=3/000000_0
line: 23,false,3,abc3,3,30,3.000000,30.300000,03/01/09,3
Error converting column: 4 TO INT
file: alltypeserror_rc/year=2009/month=3/000000_0
line: 25,false,5,5,abc5,50,5.000000,50.500000,03/01/09,5
Error converting column: 2 TO TINYINT
file: alltypeserror_rc/year=2009/month=3/000000_0
line: 27,false,abc7,7,7,70,7.000000,70.700000,03/01/09,7
Error converting column: 4 TO INT
file: alltypeserror_rc/year=2009/month=3/000000_0
line: 29,false,9,9,abc9,90,9.000000,90.900000,03/01/09,9
---- FILEERRORS
# expected errors per file
file: alltypeserror_rc/year=2009/month=1/000001_0,8
file: alltypeserror_rc/year=2009/month=2/000002_0,3
file: alltypeserror_rc/year=2009/month=3/000000_0,4
====
---- QUERY
select id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col from alltypeserrornonulls_rc
---- ERRORS
Error converting column: 1 TO BOOL
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 1,errfalse,1,1,1,10,1.000000,10.100000,01/01/09,1
Error converting column: 2 TO TINYINT
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 2,true,err2,2,2,20,2.000000,20.200000,01/01/09,2
Error converting column: 3 TO SMALLINT
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 3,false,3,err3,3,30,3.000000,30.300000,01/01/09,3
Error converting column: 4 TO INT
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 4,true,4,4,err4,40,4.000000,40.400000,01/01/09,4
Error converting column: 5 TO BIGINT
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 5,false,5,5,5,err50,5.000000,50.500000,01/01/09,5
Error converting column: 6 TO FLOAT
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 6,true,6,6,6,60,err6.000000,60.600000,01/01/09,6
Error converting column: 7 TO DOUBLE
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 7,false,7,7,7,70,7.000000,err70.700000,01/01/09,7
Error converting column: 1 TO BOOL
Error converting column: 2 TO TINYINT
Error converting column: 3 TO SMALLINT
Error converting column: 4 TO INT
Error converting column: 5 TO BIGINT
Error converting column: 6 TO FLOAT
Error converting column: 7 TO DOUBLE
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0
line: 9,errtrue,err9,err9,err9,err90,err9.000000,err90.900000,01/01/09,9
Error converting column: 6 TO FLOAT
Error converting column: 7 TO DOUBLE
file: alltypeserrornonulls_rc/year=2009/month=2/000002_0
line: 13,false,3,3,3,30,xyz3.000000,xyz30.300000,02/01/09,3
Error converting column: 2 TO TINYINT
file: alltypeserrornonulls_rc/year=2009/month=2/000002_0
line: 15,false,xyz5,5,5,50,5.000000,50.500000,02/01/09,5
Error converting column: 7 TO DOUBLE
file: alltypeserrornonulls_rc/year=2009/month=2/000002_0
line: 17,false,7,7,7,70,7.000000,xyz70.700000,02/01/09,7
Error converting column: 3 TO SMALLINT
file: alltypeserrornonulls_rc/year=2009/month=3/000000_0
line: 23,false,3,abc3,3,30,3.000000,30.300000,03/01/09,3
Error converting column: 4 TO INT
file: alltypeserrornonulls_rc/year=2009/month=3/000000_0
line: 25,false,5,5,abc5,50,5.000000,50.500000,03/01/09,5
Error converting column: 2 TO TINYINT
file: alltypeserrornonulls_rc/year=2009/month=3/000000_0
line: 27,false,abc7,7,7,70,7.000000,70.700000,03/01/09,7
Error converting column: 4 TO INT
file: alltypeserrornonulls_rc/year=2009/month=3/000000_0
line: 29,false,9,9,abc9,90,9.000000,90.900000,03/01/09,9
---- FILEERRORS
# expected errors per file
file: alltypeserrornonulls_rc/year=2009/month=1/000001_0,8
file: alltypeserrornonulls_rc/year=2009/month=2/000002_0,3
file: alltypeserrornonulls_rc/year=2009/month=3/000000_0,4
====