Repository: incubator-impala Updated Branches: refs/heads/master 45e2329c9 -> 07a713881
IMPALA-5379: Add test for parquet_dictionary_filtering The current code only tests with the default setting for parquet_dictionary_filtering, which is true. This adds a test to verify that parquet_dictionary_filtering set to false does not filter any row groups. Change-Id: If3175ce1d01c806d822c2782d60ca10939e7179e Reviewed-on: http://gerrit.cloudera.org:8080/7021 Reviewed-by: Alex Behm <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/4e56cad8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/4e56cad8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/4e56cad8 Branch: refs/heads/master Commit: 4e56cad8bf835bad4ab6f107987fb5b10fba56c6 Parents: 45e2329 Author: Joe McDonnell <[email protected]> Authored: Tue May 30 10:52:08 2017 -0700 Committer: Impala Public Jenkins <[email protected]> Committed: Wed May 31 06:49:43 2017 +0000 ---------------------------------------------------------------------- .../queries/QueryTest/parquet-filtering.test | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/4e56cad8/testdata/workloads/functional-query/queries/QueryTest/parquet-filtering.test ---------------------------------------------------------------------- diff --git a/testdata/workloads/functional-query/queries/QueryTest/parquet-filtering.test b/testdata/workloads/functional-query/queries/QueryTest/parquet-filtering.test index 5e863f1..f90e660 100644 --- a/testdata/workloads/functional-query/queries/QueryTest/parquet-filtering.test +++ b/testdata/workloads/functional-query/queries/QueryTest/parquet-filtering.test @@ -247,3 +247,15 @@ select count(*) from tpch_nested_parquet.customer where c_mktsegment = 'COMEDY'; aggregation(SUM, NumRowGroups): 4 aggregation(SUM, NumDictFilteredRowGroups): 4 ==== +---- QUERY +# Verify that parquet_dictionary_filtering=false turns off dictionary filtering +# This query filters 8/8 row groups when filtering is on. It should now filter +# zero. +set parquet_dictionary_filtering=false; +select count(*) from functional_parquet.alltypes where mod(id,10000) = 7301; +---- RESULTS +0 +---- RUNTIME_PROFILE +aggregation(SUM, NumRowGroups): 24 +aggregation(SUM, NumDictFilteredRowGroups): 0 +==== \ No newline at end of file
