You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/02/14 02:12:54 UTC
[GitHub] [incubator-hudi] vinothchandar commented on a change in pull
request #1330: [HUDI-607] Fix to allow creation/syncing of Hive tables
partitioned by Date type columns
vinothchandar commented on a change in pull request #1330: [HUDI-607] Fix to allow creation/syncing of Hive tables partitioned by Date type columns
URL: https://github.com/apache/incubator-hudi/pull/1330#discussion_r379219969
##########
File path: hudi-spark/src/main/java/org/apache/hudi/DataSourceUtils.java
##########
@@ -77,6 +80,11 @@ public static Object getNestedFieldVal(GenericRecord record, String fieldName, b
// return, if last part of name
if (i == parts.length - 1) {
+
+ if (isLogicalTypeDate(valueNode, part)) {
+ return LocalDate.ofEpochDay(Long.parseLong(val.toString()));
Review comment:
May not be related to this PR. but is time zone information lost when we convert from Date to Long (row -> avro)?
----------------------------------------------------------------
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
With regards,
Apache Git Services