This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 9863c7f645f [bugfix](hive)use `originHiveKeys` for hive partitionvalue
(#32664)
9863c7f645f is described below
commit 9863c7f645fe44da1f3e026f764e8c0e5b6af070
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]