ihuzenko commented on a change in pull request #1602: DRILL-6944: 
UnsupportedOperationException thrown for view over MapR-DB binary table
URL: https://github.com/apache/drill/pull/1602#discussion_r248718027
 
 

 ##########
 File path: 
exec/java-exec/src/test/java/org/apache/drill/exec/sql/TestViewSupport.java
 ##########
 @@ -800,4 +801,32 @@ public void 
testViewIsFoundWithinWorkspaceWhenNameStartsWithSlash() throws Excep
       test("DROP VIEW IF EXISTS `%s`.`%s`", DFS_TMP_SCHEMA, viewName);
     }
   }
+
+  @Test // DRILL-6944
+  public void testMapColumnOfNewlyCreatedView() throws Exception {
+    try {
+      test("CREATE VIEW dfs.tmp.`mapf_view` AS SELECT mapf FROM 
dfs.`avro/map_string_to_long.avro`");
 
 Review comment:
   Yes, I did some experiments with map column in avro and figured out that 
Drill detected MAP type exactly same as for binary table. And bug DRILL-6944 
was reproduced for view created over avro file before I made the fix (this fact 
mentioned in Jira also). So I think we can rely on added tests to ensure that 
issue is gone.

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