JingsongLi commented on a change in pull request #10690: [FLINK-15391][hive]
DATE and TIMESTAMP partition columns don't work
URL: https://github.com/apache/flink/pull/10690#discussion_r361356436
##########
File path:
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveTableSource.java
##########
@@ -286,7 +293,15 @@ private Object restorePartitionValueFromFromType(String
valStr, DataType type) {
case DOUBLE:
return Double.valueOf(valStr);
case DATE:
- return Date.valueOf(valStr);
+ return HiveInspectors.toFlinkObject(
Review comment:
You can fix `AbstractOrcColumnVector.createHiveVectorFromConstant` too.
----------------------------------------------------------------
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