Files
impala/testdata/workloads/functional-query/queries/DataErrorsTest/hdfs-scan-node-errors.test
Lenni Kuff 04edc8f534 Update benchmark tests to run against generic workload, data loading with scale factor, +more
This change updates the run-benchmark script to enable it to target one or more
workloads. Now benchmarks can be run like:

./run-benchmark --workloads=hive-benchmark,tpch

We lookup the workload in the workloads directory, then read the associated
query .test files and start executing them.

To ensure the queries are not duplicated between benchmark and query tests, I
moved all existing queries (under fe/src/test/resources/* to the workloads
directory. You do NOT need to look through all the .test files, I've just moved
them. The one new file is the 'hive-benchmark.test' which contains the hive
benchmark queries.

Also added support for generating schema for different scale factors as well as
executing against these scale factors. For example, let's say we have a dataset
with a scale factor called "SF1". We would first generate the schema using:

./generate_schema_statements --workload=<workload> --scale_factor="SF3"
This will create tables with a unique names from the other scale factors.

Run the generated .sql file to load the data. Alternatively, the data can loaded
by running a new python script:
./bin/load-data.py -w <workload1>,<workload2> -e <exploration strategy> -s [scale factor]
For example: load-data.sh -w tpch -e core -s SF3

Then run against this:
./run-benchmark --workloads=<workload> --scale_factor=SF3

This changeset also includes a few other minor tweaks to some of the test
scripts.

Change-Id: Ife8a8d91567d75c9612be37bec96c1e7780f50d6
2014-01-08 10:44:22 -08:00

121 lines
5.5 KiB
Plaintext

select id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col timestamp_col from alltypeserror$TABLE
---- ERRORS
Error converting column: 1 TO BOOL
file: alltypeserror/year=2009/month=1/0901.txt
line: 1,errfalse,,1,1,10,1.000000,10.100000,01/01/09,1
Error converting column: 2 TO TINYINT
file: alltypeserror/year=2009/month=1/0901.txt
line: 2,true,err2,,2,20,2.000000,20.200000,01/01/09,2
Error converting column: 3 TO SMALLINT
file: alltypeserror/year=2009/month=1/0901.txt
line: 3,false,3,err3,,30,3.000000,30.300000,01/01/09,3
Error converting column: 4 TO INT
file: alltypeserror/year=2009/month=1/0901.txt
line: 4,true,4,4,err4,,4.000000,40.400000,01/01/09,4
Error converting column: 5 TO BIGINT
file: alltypeserror/year=2009/month=1/0901.txt
line: 5,false,5,5,5,err50,,50.500000,01/01/09,5
Error converting column: 6 TO FLOAT
file: alltypeserror/year=2009/month=1/0901.txt
line: 6,true,6,6,6,60,err6.000000,,01/01/09,6
Error converting column: 7 TO DOUBLE
file: alltypeserror/year=2009/month=1/0901.txt
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/year=2009/month=1/0901.txt
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/year=2009/month=2/0902.txt
line: 13,false,3,3,,,xyz3.000000,xyz30.300000,02/01/09,3
Error converting column: 2 TO TINYINT
file: alltypeserror/year=2009/month=2/0902.txt
line: 15,false,xyz5,5,5,50,5.000000,50.500000,02/01/09,5
Error converting column: 7 TO DOUBLE
file: alltypeserror/year=2009/month=2/0902.txt
line: 17,false,7,7,7,70,7.000000,xyz70.700000,02/01/09,7
Error converting column: 3 TO SMALLINT
file: alltypeserror/year=2009/month=3/0903.txt
line: 23,false,3,abc3,3,30,3.000000,30.300000,03/01/09,3
Error converting column: 4 TO INT
file: alltypeserror/year=2009/month=3/0903.txt
line: 25,false,5,5,abc5,50,5.000000,50.500000,03/01/09,5
Error converting column: 2 TO TINYINT
file: alltypeserror/year=2009/month=3/0903.txt
line: 27,false,abc7,7,7,70,7.000000,70.700000,03/01/09,7
Error converting column: 4 TO INT
file: alltypeserror/year=2009/month=3/0903.txt
line: 29,false,9,9,abc9,90,9.000000,90.900000,03/01/09,9
---- FILEERRORS
# expected errors per file
file: alltypeserror/year=2009/month=1/0901.txt,8
file: alltypeserror/year=2009/month=2/0902.txt,3
file: alltypeserror/year=2009/month=3/0903.txt,4
====
select id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col, timestamp_col from alltypeserrornonulls$TABLE
---- ERRORS
Error converting column: 1 TO BOOL
file: alltypeserrornonulls/year=2009/month=1/0901.txt
line: 1,errfalse,1,1,1,10,1.000000,10.100000,01/01/09,1
Error converting column: 2 TO TINYINT
file: alltypeserrornonulls/year=2009/month=1/0901.txt
line: 2,true,err2,2,2,20,2.000000,20.200000,01/01/09,2
Error converting column: 3 TO SMALLINT
file: alltypeserrornonulls/year=2009/month=1/0901.txt
line: 3,false,3,err3,3,30,3.000000,30.300000,01/01/09,3
Error converting column: 4 TO INT
file: alltypeserrornonulls/year=2009/month=1/0901.txt
line: 4,true,4,4,err4,40,4.000000,40.400000,01/01/09,4
Error converting column: 5 TO BIGINT
file: alltypeserrornonulls/year=2009/month=1/0901.txt
line: 5,false,5,5,5,err50,5.000000,50.500000,01/01/09,5
Error converting column: 6 TO FLOAT
file: alltypeserrornonulls/year=2009/month=1/0901.txt
line: 6,true,6,6,6,60,err6.000000,60.600000,01/01/09,6
Error converting column: 7 TO DOUBLE
file: alltypeserrornonulls/year=2009/month=1/0901.txt
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/year=2009/month=1/0901.txt
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/year=2009/month=2/0902.txt
line: 13,false,3,3,3,30,xyz3.000000,xyz30.300000,02/01/09,3
Error converting column: 2 TO TINYINT
file: alltypeserrornonulls/year=2009/month=2/0902.txt
line: 15,false,xyz5,5,5,50,5.000000,50.500000,02/01/09,5
Error converting column: 7 TO DOUBLE
file: alltypeserrornonulls/year=2009/month=2/0902.txt
line: 17,false,7,7,7,70,7.000000,xyz70.700000,02/01/09,7
Error converting column: 3 TO SMALLINT
file: alltypeserrornonulls/year=2009/month=3/0903.txt
line: 23,false,3,abc3,3,30,3.000000,30.300000,03/01/09,3
Error converting column: 4 TO INT
file: alltypeserrornonulls/year=2009/month=3/0903.txt
line: 25,false,5,5,abc5,50,5.000000,50.500000,03/01/09,5
Error converting column: 2 TO TINYINT
file: alltypeserrornonulls/year=2009/month=3/0903.txt
line: 27,false,abc7,7,7,70,7.000000,70.700000,03/01/09,7
Error converting column: 4 TO INT
file: alltypeserrornonulls/year=2009/month=3/0903.txt
line: 29,false,9,9,abc9,90,9.000000,90.900000,03/01/09,9
---- FILEERRORS
# expected errors per file
file: alltypeserrornonulls/year=2009/month=1/0901.txt,8
file: alltypeserrornonulls/year=2009/month=2/0902.txt,3
file: alltypeserrornonulls/year=2009/month=3/0903.txt,4
====