Files
impala/testdata/workloads/functional-query/queries/DataErrorsTest/hbase-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

114 lines
4.4 KiB
Plaintext

select id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col from hbasealltypeserror
---- ERRORS
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
hbase table: hbasealltypeserror
row key: 15
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
hbase table: hbasealltypeserror
row key: 2
Error converting column ints:smallint_col: 'abc3' TO SMALLINT
hbase table: hbasealltypeserror
row key: 23
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
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
hbase table: hbasealltypeserror
row key: 9
---- FILEERRORS
file: hbasealltypeserror,15
====
select id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, float_col, double_col, date_string_col, string_col from hbasealltypeserrornonulls
---- ERRORS
Error converting column bools:bool_col: 'errfalse' TO BOOL
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
hbase table: hbasealltypeserrornonulls
row key: 25
Error converting column ints:tinyint_col: 'abc7' TO TINYINT
hbase table: hbasealltypeserrornonulls
row key: 27
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
====