drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amansinha100 <...@git.apache.org>
Subject [GitHub] drill pull request #552: [Drill-3710] New option for the IN LIST size to con...
Date Fri, 22 Jul 2016 18:26:37 GMT
Github user amansinha100 commented on a diff in the pull request:

    --- 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 --
    Not sure if it is necessary to check the no-partition-pruning case.  Basically, the goal
of the test is to see if partition pruning works with large IN lists. 

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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message