Files
impala/testdata/workloads/functional-query/queries/QueryTest/mixed-format.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

27 lines
609 B
Plaintext

====
---- QUERY
# Check that data from mixed format partitions can be read
# transparently. Compute sum in order to force deserialisation
select count(*), sum(int_col) from alltypesmixedformat
---- TYPES
bigint, bigint
---- RESULTS
900,4050
====
---- QUERY
# Restrict set of partitions (still multi-format)
select count(*), sum(int_col) from alltypesmixedformat where month = 1 or month = 3
---- TYPES
bigint, bigint
---- RESULTS
620,2790
====
---- QUERY
# Read single partition alone
select count(*), sum(int_col) from alltypesmixedformat where month = 2
---- TYPES
bigint, bigint
---- RESULTS
280,1260
====