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 2019/09/16 07:04:22 UTC

[GitHub] [drill] arina-ielchiieva commented on a change in pull request #1855: DRILL-7252: Read Hive map using Dict vector

arina-ielchiieva commented on a change in pull request #1855: DRILL-7252: Read Hive map using Dict<K,V> vector
URL: https://github.com/apache/drill/pull/1855#discussion_r324529718
 
 

 ##########
 File path: contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/writers/complex/HiveListWriter.java
 ##########
 @@ -38,8 +40,12 @@ public HiveListWriter(ListObjectInspector listInspector, BaseWriter.ListWriter l
 
   @Override
   public void write(Object value) {
+    List<?> list = listInspector.getList(value);
+    if (list == null) {
+      throw new UnsupportedOperationException("Null array is not supported for Hive!");
 
 Review comment:
   ```suggestion
         throw new UnsupportedOperationException("Null array is not supported in Hive.");
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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