[fix](cache)Fix partition cache support DATEV2 (#27978)

This commit is contained in:
Xinyi Zou
2023-12-05 12:59:47 +08:00
committed by GitHub
parent 17016b9797
commit fa0b495b33

View File

@ -153,6 +153,7 @@ public class PartitionRange {
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());