You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/07/20 13:20:44 UTC

[GitHub] vvysotskyi commented on a change in pull request #1390: DRILL-6624: Fix loss of the table row type when the same schema name …

vvysotskyi commented on a change in pull request #1390: DRILL-6624: Fix loss of the table row type when the same schema name …
URL: https://github.com/apache/drill/pull/1390#discussion_r204038251
 
 

 ##########
 File path: exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestSchema.java
 ##########
 @@ -84,4 +84,42 @@ public void testUseBrokenStorage() throws Exception {
     }
   }
 
+  @Test
+  public void testLocal() throws Exception {
+    try {
+      client.queryBuilder()
+          .sql("create table `dfs.tmp`.t1 as select 1 as c1")
+          .run();
+
+      client.queryBuilder()
+          .sql("create table dfs.tmp.t2 as select 1 as c2")
+          .run();
+
+      client.queryBuilder()
+          .sql("create table dfs.tmp.`t3` as SELECT 1 as c2,1 as c1")
+          .run();
+
+      client.testBuilder()
+          .sqlQuery("select a.c2 from dfs.tmp.`t2` a\n" +
+            "join  dfs.tmp.`t3` b ON b.c2 = a.c2 \n" +
 
 Review comment:
   Experimented with a query and tables number. This bug is not reproduced when a single table is joining itself, but it is reproduced when two tables are joined. So I rewrote the query and used two tables in the test.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services