Files
impala/testdata/workloads/functional-query/queries/QueryTest/codegen-mem-limit.test
Thomas Tauber-Marshall 6fa35478d5 IMPALA-5847: Fix incorrect use of SET in .test files
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>
2019-01-22 01:20:31 +00:00

10 lines
234 B
Plaintext

====
---- QUERY
set mem_limit=100k;
with t as (values(1), (2), (3), (4)) select min(t1.`1` + t2.`1`) from t t1 join t t2;
---- CATCH
Codegen failed to reserve
---- RUNTIME_PROFILE
row_regex: .*EXEC_SINGLE_NODE_ROWS_THRESHOLD=0.*
====