Github user gparai commented on a diff in the pull request:
https://github.com/apache/drill/pull/552#discussion_r71934130
--- Diff:
exec/java-exec/src/test/java/org/apache/drill/TestPartitionFilter.java ---
@@ -376,4 +376,14 @@ public void testPartitionFilterWithLike() throws
Exception {
testIncludeFilter(query4, 4, "Filter", 16);
}
+ @Test //DRILL-3710 Partition pruning should occur with varying IN-LIST
size
+ public void testPartitionFilterWithInSubquery() throws Exception {
+ String query = String.format("select * from
dfs_test.`%s/multilevel/parquet` where cast (dir0 as int) IN (1994, 1994, 1994,
1994, 1994, 1994)", TEST_RES_PATH);
+ /* In list size exceeds threshold - no partition pruning since
predicate converted to join */
+ test("alter session set `planner.in_subquery_threshold` = 2");
--- End diff --
A bug could cause us to not obey the option at all i.e. we always do
partition pruning regardless of the option setting. This unit test checks we do
obey the option.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---