bowenli86 commented on a change in pull request #8522:
[FLINK-12572][hive]Implement TableSource and InputFormat to read Hive tables
URL: https://github.com/apache/flink/pull/8522#discussion_r287214087
##########
File path:
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/util/HiveTableUtil.java
##########
@@ -71,4 +91,115 @@ public static TableSchema
createTableSchema(List<FieldSchema> cols, List<FieldSc
return columns;
}
+
+ /**
+ * Convert partition value string to actual type in flink.
+ * @param partitionValue
+ * @param clazz
+ * @return
+ */
+ public static Object getActualObjectFromString(String partitionValue,
Class clazz) {
+ Object partitionObject = null;
+ if (String.class.equals(clazz)) {
Review comment:
use `==`?
----------------------------------------------------------------
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