drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [3/9] drill git commit: DRILL-2013: Part 2 - Improve test for flatten bug
Date Fri, 27 Feb 2015 08:01:57 GMT
DRILL-2013: Part 2 - Improve test for flatten bug


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/f378b342
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/f378b342
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/f378b342

Branch: refs/heads/master
Commit: f378b342cabc6c1e69a1df0855136ef36e523741
Parents: ce0afb1
Author: AdamPD <adam@pharmadata.net.au>
Authored: Mon Feb 9 12:12:36 2015 +1000
Committer: Jason Altekruse <altekrusejason@gmail.com>
Committed: Thu Feb 26 16:41:03 2015 -0800

----------------------------------------------------------------------
 .../apache/drill/exec/physical/impl/flatten/TestFlatten.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/f378b342/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/flatten/TestFlatten.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/flatten/TestFlatten.java
b/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/flatten/TestFlatten.java
index 9518386..dc37079 100644
--- a/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/flatten/TestFlatten.java
+++ b/exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/flatten/TestFlatten.java
@@ -243,7 +243,10 @@ public class TestFlatten extends BaseTestQuery {
 
   @Test
   public void testDrill_2013() throws Exception {
-    test("select flatten(complex), rownum from cp.`/store/json/test_flatten_mappify2.json`
where rownum > 5");
+    testBuilder()
+            .sqlQuery("select flatten(complex), rownum from cp.`/store/json/test_flatten_mappify2.json`
where rownum > 5")
+            .expectsEmptyResultSet()
+            .build().run();
   }
 
 }


Mime
View raw message