Github user jinfengni commented on a diff in the pull request:

    https://github.com/apache/drill/pull/559#discussion_r73725525
  
    --- Diff: 
exec/java-exec/src/test/java/org/apache/drill/TestPartitionFilter.java ---
    @@ -386,4 +386,49 @@ public void testPartitionFilterWithInSubquery() throws 
Exception {
         test("alter session set `planner.in_subquery_threshold` = 10");
         testExcludeFilter(query, 4, "Filter", 40);
       }
    +
    +
    +  @Test // DRILL-4825: querying same table with different filter in UNION 
ALL.
    +  public void testPruneSameTableInUnionAll() throws Exception {
    +    final String query = String.format("select count(*) as cnt from "
    +        + "( select dir0 from dfs_test.`%s/multilevel/parquet` where dir0 
in ('1994') union all "
    +        + "  select dir0 from dfs_test.`%s/multilevel/parquet` where dir0 
in ('1995', '1996') )",
    +        TEST_RES_PATH, TEST_RES_PATH);
    +
    +    String [] exclued = {"Filter"};
    --- End diff --
    
    modified. 


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

Reply via email to