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:
[email protected]


With regards,
Apache Git Services

Reply via email to