wangyum commented on a change in pull request #25378: [SPARK-28644][SQL] Port 
HIVE-10646: ColumnValue does not handle NULL_TYPE
URL: https://github.com/apache/spark/pull/25378#discussion_r311653735
 
 

 ##########
 File path: 
sql/hive-thriftserver/v1.2.1/src/main/java/org/apache/hive/service/cli/ColumnValue.java
 ##########
 @@ -202,6 +202,8 @@ public static TColumnValue toTColumnValue(Type type, 
Object value) {
     case UNION_TYPE:
     case USER_DEFINED_TYPE:
       return stringValue((String)value);
+    case NULL_TYPE:
+      return stringValue((String)value);
 
 Review comment:
   Hive 2.3 has fixed this issue:
   
https://github.com/apache/spark/blob/3f102a82295a8b775d00d86683561a71303f3e39/sql/hive-thriftserver/v2.3.5/src/main/java/org/apache/hive/service/cli/ColumnValue.java#L209-L210

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to