You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/04/28 02:14:51 UTC

[GitHub] [flink] Ruan-Xin commented on a change in pull request #11876: [FLINK-17334] HIVE UDF BUGFIX

Ruan-Xin commented on a change in pull request #11876:
URL: https://github.com/apache/flink/pull/11876#discussion_r416276143



##########
File path: flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/functions/hive/conversion/HiveInspectors.java
##########
@@ -354,25 +354,25 @@ public static ObjectInspector getObjectInspector(HiveShim hiveShim, Class clazz)
 		if (clazz.equals(String.class) || clazz.equals(Text.class)) {
 
 			typeInfo = TypeInfoFactory.stringTypeInfo;
-		} else if (clazz.equals(Boolean.class) || clazz.equals(BooleanWritable.class)) {
+		} else if (clazz.equals(boolean.class) || clazz.equals(Boolean.class) || clazz.equals(BooleanWritable.class)) {

Review comment:
       Ok, I will remove the method.




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