This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit b9ac5b3d5bc0157431ef8cc945b9f9b098f72d2c Author: wuwenchi <[email protected]> AuthorDate: Sun Mar 24 11:07:53 2024 +0800 [bugfix](hive)use `originHiveKeys` for hive partitionvalue (#32664) --- fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java index 7ad86698d91..0a7c8268450 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java @@ -234,6 +234,11 @@ public class PartitionKey implements Comparable<PartitionKey>, Writable { } public List<String> getPartitionValuesAsStringList() { + if (originHiveKeys.size() == keys.size()) { + // for hive, we need ues originHiveKeys + // because when a double 1.234 as partition column, it will save as '1.123000' for PartitionValue + return getPartitionValuesAsStringListForHive(); + } return keys.stream().map(k -> k.getStringValue()).collect(Collectors.toList()); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
