Github user sudheeshkatkam commented on a diff in the pull request:
https://github.com/apache/drill/pull/555#discussion_r73022625
--- Diff:
exec/java-exec/src/test/java/org/apache/drill/TestUnionDistinct.java ---
@@ -821,4 +826,34 @@ public void testGroupByUnionDistinct() throws
Exception {
.build()
.run();
}
+
+ @Test // DRILL-4147 // union-distinct base case
+ public void testDrill4147_1() throws Exception {
+ final String l =
FileUtils.getResourceAsFile("/multilevel/parquet/1994").toURI().toString();
+ final String r =
FileUtils.getResourceAsFile("/multilevel/parquet/1995").toURI().toString();
+
+ final String query = String.format("SELECT o_custkey FROM
dfs_test.`%s` \n" +
+ "Union distinct SELECT o_custkey FROM dfs_test.`%s`", l, r);
+
+ // Validate the plan
+ final String[] expectedPlan =
{"(?s)UnionExchange.*HashAgg.*HashToRandomExchange.*UnionAll.*"};
+ final String[] excludedPlan = {};
+
+ test(sliceTargetSmall);
--- End diff --
These two calls should be inside the try block?
---
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.
---