Skip to content

Commit

Permalink
[branch-2.0](cache) Fix partition cache support DATEV2 apache#27978 (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz authored Dec 5, 2023
1 parent 87afb0b commit 9d32947
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public static class PartitionKeyType {
public boolean init(Type type, String str) {
switch (type.getPrimitiveType()) {
case DATE:
case DATEV2:
try {
date = Date.from(
LocalDate.parse(str, df10).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
Expand Down

0 comments on commit 9d32947

Please sign in to comment.