vaibhav-sinha opened a new pull request #2923:
URL: https://github.com/apache/hudi/pull/2923
This PR adds the support for Date, Timestamp, LocalDate and LocalDateTime
types in TimestampBasedAvroKeyGenerator. Hence, columns with these types can be
used for partitioning. The support for Date and Timestamp types are added
because those are used by Spark for DateType and TimestampType respectively.
The support for LocalDate and LocalDateTime are added because that is how Avro
date, `timestamp-micros` and `timestamp-millis` are represented in
`HoodieAvroUtils`.
In addition to this, `HoodieAvroUtils` did not handle type conversions
properly for `timestamp-micros` and `timestamp-millis` logical types and that
has been fixed.
Test cases are added to verify the functionality and manual jobs have been
run to validate the changes as well.
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
--
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]