vdiravka 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_r204020955
 
 

 ##########
 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:
   Can we use less number of tables for the unit 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:
[email protected]


With regards,
Apache Git Services

Reply via email to