mirror of
https://github.com/apache/impala.git
synced 2026-01-15 06:00:38 -05:00
The '.test' files are used to run queries for tests. These files are run with a vector of default query options. They also sometimes include SET queries that modify query options. If SET is used on a query option that is included in the vector, the default value from the vector will override the value from the SET, leading to tests that don't actually run with the query options they appear to. This patch asserts that '.test' files don't use SET for values present in the default vector. It also fixes various tests that already had this incorrect behavior. Testing: - Passed a full exhaustive run. Change-Id: I4e4c0f31bf4850642b624acdb1f6cb8837957990 Reviewed-on: http://gerrit.cloudera.org:8080/12220 Reviewed-by: Thomas Marshall <thomasmarshall@cmu.edu> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
27 lines
591 B
Plaintext
27 lines
591 B
Plaintext
====
|
|
---- QUERY
|
|
# Uncorrelated subquery in binary predicate that returns scalar value at runtime.
|
|
# num_nodes = 1 is set for this file by the python test.
|
|
SELECT count(id) FROM functional.alltypes
|
|
WHERE int_col =
|
|
(SELECT int_col
|
|
FROM functional.alltypessmall
|
|
WHERE id = 1)
|
|
---- RESULTS
|
|
730
|
|
---- TYPES
|
|
BIGINT
|
|
====
|
|
---- QUERY
|
|
# Uncorrelated subquery in arithmetic expr that returns scalar value at runtime.
|
|
SELECT count(id) FROM functional.alltypes
|
|
WHERE int_col =
|
|
3 * (SELECT int_col
|
|
FROM functional.alltypessmall
|
|
WHERE id = 1)
|
|
---- RESULTS
|
|
730
|
|
---- TYPES
|
|
BIGINT
|
|
====
|