mirror of
https://github.com/apache/impala.git
synced 2026-01-09 06:05:09 -05:00
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
213 lines
9.6 KiB
Plaintext
213 lines
9.6 KiB
Plaintext
====
|
|
---- QUERY
|
|
select * from hbasealltypeserror
|
|
---- ERRORS
|
|
Error converting column strings:timestamp_col: '0' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 0
|
|
Error converting column bools:bool_col: 'errfalse' TO BOOL
|
|
hbase table: hbasealltypeserror
|
|
row key: 1
|
|
Error converting column floats:double_col: 'xyz30.300000' TO DOUBLE
|
|
Error converting column floats:float_col: 'xyz3.000000' TO FLOAT
|
|
hbase table: hbasealltypeserror
|
|
row key: 13
|
|
Error converting column ints:tinyint_col: 'xyz5' TO TINYINT
|
|
Error converting column strings:timestamp_col: '0009-01-01 00:00:00' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 15
|
|
Error converting column strings:timestamp_col: '0' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 16
|
|
Error converting column floats:double_col: 'xyz70.700000' TO DOUBLE
|
|
hbase table: hbasealltypeserror
|
|
row key: 17
|
|
Error converting column ints:tinyint_col: 'err2' TO TINYINT
|
|
Error converting column strings:timestamp_col: '1999-10-10 90:10:10' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 2
|
|
Error converting column strings:timestamp_col: '2020-20-10 10:10:10.123' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 21
|
|
Error converting column strings:timestamp_col: '2020-10-40 10:10:10.123' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 22
|
|
Error converting column ints:smallint_col: 'abc3' TO SMALLINT
|
|
Error converting column strings:timestamp_col: '2020-10-10 60:10:10.123' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 23
|
|
Error converting column strings:timestamp_col: '2020-10-10 10:70:10.123' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 24
|
|
Error converting column ints:int_col: 'abc5' TO INT
|
|
hbase table: hbasealltypeserror
|
|
row key: 25
|
|
Error converting column ints:tinyint_col: 'abc7' TO TINYINT
|
|
hbase table: hbasealltypeserror
|
|
row key: 27
|
|
Error converting column ints:int_col: 'abc9' TO INT
|
|
hbase table: hbasealltypeserror
|
|
row key: 29
|
|
Error converting column ints:smallint_col: 'err3' TO SMALLINT
|
|
Error converting column strings:timestamp_col: '2002-14-10 00:00:00' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 3
|
|
Error converting column ints:int_col: 'err4' TO INT
|
|
hbase table: hbasealltypeserror
|
|
row key: 4
|
|
Error converting column ints:bigint_col: 'err50' TO BIGINT
|
|
hbase table: hbasealltypeserror
|
|
row key: 5
|
|
Error converting column floats:float_col: 'err6.000000' TO FLOAT
|
|
hbase table: hbasealltypeserror
|
|
row key: 6
|
|
Error converting column floats:double_col: 'err70.700000' TO DOUBLE
|
|
hbase table: hbasealltypeserror
|
|
row key: 7
|
|
Error converting column bools:bool_col: 'errtrue' TO BOOL
|
|
Error converting column floats:double_col: 'err90.900000' TO DOUBLE
|
|
Error converting column floats:float_col: 'err9.000000' TO FLOAT
|
|
Error converting column ints:bigint_col: 'err90' TO BIGINT
|
|
Error converting column ints:int_col: 'err9' TO INT
|
|
Error converting column ints:smallint_col: 'err9' TO SMALLINT
|
|
Error converting column ints:tinyint_col: 'err9' TO TINYINT
|
|
Error converting column strings:timestamp_col: '0000-01-01 00:00:00' TO TIMESTAMP
|
|
hbase table: hbasealltypeserror
|
|
row key: 9
|
|
---- FILEERRORS
|
|
file: hbasealltypeserror,15
|
|
---- TYPES
|
|
int, boolean, double, float, bigint, int, smallint, tinyint, string, string, timestamp
|
|
---- RESULTS
|
|
0,NULL,0,0,0,0,0,NULL,'01/01/09','0',NULL
|
|
1,NULL,10.1,1,10,1,1,NULL,'01/01/09','1',1999-10-10 00:00:00
|
|
10,NULL,0,0,0,0,NULL,NULL,'02/01/09','0',2009-01-01 00:00:00
|
|
11,false,10.1,1,10,NULL,NULL,NULL,'02/01/09','1',2009-01-01 00:00:00
|
|
12,true,20.2,2,NULL,NULL,NULL,2,'02/01/09','2',2009-01-01 00:00:00
|
|
13,false,NULL,NULL,NULL,NULL,3,3,'02/01/09','3',2009-01-01 00:00:00
|
|
14,true,NULL,NULL,40,4,4,4,'02/01/09','4',2009-01-01 00:00:00
|
|
15,false,50.5,5,50,5,5,NULL,'02/01/09','5',NULL
|
|
16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'02/01/09','6',NULL
|
|
17,false,NULL,7,70,7,7,7,'02/01/09','7',2009-01-01 00:00:00
|
|
18,true,80.8,8,80,8,8,8,'02/01/09','8',2009-01-01 00:00:00
|
|
19,false,90.90000000000001,9,90,9,9,9,'02/01/09','9',2009-01-01 00:00:00
|
|
2,true,20.2,2,20,2,NULL,NULL,'01/01/09','2',NULL
|
|
20,true,0,0,0,0,0,0,'03/01/09','0',2020-10-10 10:10:10.123000000
|
|
21,false,10.1,1,10,1,1,1,'03/01/09','1',NULL
|
|
22,true,20.2,2,20,2,2,2,'03/01/09','2',NULL
|
|
23,false,30.3,3,30,3,NULL,3,'03/01/09','3',NULL
|
|
24,true,40.4,4,40,4,4,4,'03/01/09','4',NULL
|
|
25,false,50.5,5,50,NULL,5,5,'03/01/09','5',2020-10-10 10:10:10.123000000
|
|
26,true,60.6,6,60,6,6,6,'03/01/09','6',2020-10-10 10:10:10.123000000
|
|
27,false,70.7,7,70,7,7,NULL,'03/01/09','7',2020-10-10 10:10:10.123000000
|
|
28,true,80.8,8,80,8,8,8,'03/01/09','8',2020-10-10 10:10:10.123000000
|
|
29,false,90.90000000000001,9,90,NULL,9,9,'03/01/09','9',2020-10-10 10:10:10.123000000
|
|
3,false,30.3,3,30,NULL,NULL,3,'01/01/09','3',NULL
|
|
30,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01/01/10','10',NULL
|
|
4,true,40.4,4,NULL,NULL,4,4,'01/01/09','4',1970-01-01 00:00:00
|
|
5,false,50.5,NULL,NULL,5,5,5,'01/01/09','5',1970-01-01 00:00:00
|
|
6,true,NULL,NULL,60,6,6,6,'01/01/09','6',1970-01-01 00:00:00
|
|
7,NULL,NULL,7,70,7,7,NULL,'01/01/09','7',1970-01-01 00:00:00
|
|
8,false,80.8,8,80,8,NULL,NULL,'01/01/09','8',1970-01-01 00:00:00
|
|
9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01/01/09','9',NULL
|
|
====
|
|
---- QUERY
|
|
select * from hbasealltypeserrornonulls
|
|
---- ERRORS
|
|
Error converting column strings:timestamp_col: '123456' TO TIMESTAMP
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 0
|
|
Error converting column bools:bool_col: 'errfalse' TO BOOL
|
|
Error converting column strings:timestamp_col: '1990-00-01 10:10:10' TO TIMESTAMP
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 1
|
|
Error converting column floats:double_col: 'xyz30.300000' TO DOUBLE
|
|
Error converting column floats:float_col: 'xyz3.000000' TO FLOAT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 13
|
|
Error converting column ints:tinyint_col: 'xyz5' TO TINYINT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 15
|
|
Error converting column floats:double_col: 'xyz70.700000' TO DOUBLE
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 17
|
|
Error converting column ints:tinyint_col: 'err2' TO TINYINT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 2
|
|
Error converting column ints:smallint_col: 'abc3' TO SMALLINT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 23
|
|
Error converting column ints:int_col: 'abc5' TO INT
|
|
Error converting column strings:timestamp_col: '2012-Mar-22 11:20:01.123' TO TIMESTAMP
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 25
|
|
Error converting column ints:tinyint_col: 'abc7' TO TINYINT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 27
|
|
Error converting column strings:timestamp_col: '11:20:01.123 2012-03-22 ' TO TIMESTAMP
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 28
|
|
Error converting column ints:int_col: 'abc9' TO INT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 29
|
|
Error converting column ints:smallint_col: 'err3' TO SMALLINT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 3
|
|
Error converting column ints:int_col: 'err4' TO INT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 4
|
|
Error converting column ints:bigint_col: 'err50' TO BIGINT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 5
|
|
Error converting column floats:float_col: 'err6.000000' TO FLOAT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 6
|
|
Error converting column floats:double_col: 'err70.700000' TO DOUBLE
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 7
|
|
Error converting column bools:bool_col: 'errtrue' TO BOOL
|
|
Error converting column floats:double_col: 'err90.900000' TO DOUBLE
|
|
Error converting column floats:float_col: 'err9.000000' TO FLOAT
|
|
Error converting column ints:bigint_col: 'err90' TO BIGINT
|
|
Error converting column ints:int_col: 'err9' TO INT
|
|
Error converting column ints:smallint_col: 'err9' TO SMALLINT
|
|
Error converting column ints:tinyint_col: 'err9' TO TINYINT
|
|
hbase table: hbasealltypeserrornonulls
|
|
row key: 9
|
|
---- FILEERRORS
|
|
file: hbasealltypeserrornonulls,15
|
|
---- TYPES
|
|
int, boolean, double, float, bigint, int, smallint, tinyint, string, string, timestamp
|
|
---- RESULTS
|
|
0,true,0,0,0,0,0,0,'01/01/09','0',NULL
|
|
1,NULL,10.1,1,10,1,1,1,'01/01/09','1',NULL
|
|
10,true,0,0,0,0,0,0,'02/01/09','0',2012-03-22 11:20:01.123000000
|
|
11,false,10.1,1,10,1,1,1,'02/01/09','1',2012-03-22 11:20:01.123000000
|
|
12,true,20.2,2,20,2,2,2,'02/01/09','2',2012-03-22 11:20:01.123000000
|
|
13,false,NULL,NULL,30,3,3,3,'02/01/09','3',2012-03-22 11:20:01.123000000
|
|
14,true,40.4,4,40,4,4,4,'02/01/09','4',2012-03-22 11:20:01.123000000
|
|
15,false,50.5,5,50,5,5,NULL,'02/01/09','5',2012-03-22 11:20:01.123000000
|
|
16,true,60.6,6,60,6,6,6,'02/01/09','6',2012-03-22 11:20:01.123000000
|
|
17,false,NULL,7,70,7,7,7,'02/01/09','7',2012-03-22 11:20:01.123000000
|
|
18,true,80.8,8,80,8,8,8,'02/01/09','8',2012-03-22 11:20:01.123000000
|
|
19,false,90.90000000000001,9,90,9,9,9,'02/01/09','9',2012-03-22 11:20:01.123000000
|
|
2,true,20.2,2,20,2,2,NULL,'01/01/09','2',2012-03-22 11:20:01.123000000
|
|
20,true,0,0,0,0,0,0,'03/01/09','0',2012-03-22 11:20:01.123000000
|
|
21,false,10.1,1,10,1,1,1,'03/01/09','1',2012-03-22 11:20:01.123000000
|
|
22,true,20.2,2,20,2,2,2,'03/01/09','2',2012-03-22 11:20:01.123000000
|
|
23,false,30.3,3,30,3,NULL,3,'03/01/09','3',2012-03-22 11:20:01.123000000
|
|
24,true,40.4,4,40,4,4,4,'03/01/09','4',2012-03-22 11:20:01.123000000
|
|
25,false,50.5,5,50,NULL,5,5,'03/01/09','5',NULL
|
|
26,true,60.6,6,60,6,6,6,'03/01/09','6',2012-03-22 11:20:01.123000000
|
|
27,false,70.7,7,70,7,7,NULL,'03/01/09','7',2012-03-22 11:20:01.123000000
|
|
28,true,80.8,8,80,8,8,8,'03/01/09','8',NULL
|
|
29,false,90.90000000000001,9,90,NULL,9,9,'03/01/09','9',2012-03-22 00:00:00
|
|
3,false,30.3,3,30,3,NULL,3,'01/01/09','3',2012-03-22 11:20:01.123000000
|
|
4,true,40.4,4,40,NULL,4,4,'01/01/09','4',2012-03-22 11:20:01.123000000
|
|
5,false,50.5,5,NULL,5,5,5,'01/01/09','5',2012-03-22 11:20:01.123000000
|
|
6,true,60.6,NULL,60,6,6,6,'01/01/09','6',2012-03-22 11:20:01.123000000
|
|
7,false,NULL,7,70,7,7,7,'01/01/09','7',2012-03-22 11:20:01.123000000
|
|
8,false,80.8,8,80,8,8,8,'01/01/09','8',2012-03-22 11:20:01.123000000
|
|
9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01/01/09','9',2012-03-22 11:20:01.123000000
|
|
====
|