This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 b9bb28f22c [Enhancement](Planner)fix unclear exception msg when create
table. #17473
b9bb28f22c is described below
commit b9bb28f22ccec00a61b9a06acc58a1f16918378e
Author: mch_ucchi <[email protected]>
AuthorDate: Tue Mar 7 13:38:20 2023 +0800
[Enhancement](Planner)fix unclear exception msg when create table. #17473
---
.../src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
b/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
index 15bed04e38..190c86ece6 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
@@ -725,7 +725,7 @@ public class PropertyAnalyzer {
if (!parts[0].startsWith(TAG_LOCATION)) {
throw new AnalysisException("Invalid replication allocation
tag property: " + location);
}
- String locationVal = parts[0].substring(TAG_LOCATION.length() +
1); // +1 to skip dot.
+ String locationVal = parts[0].replace(TAG_LOCATION,
"").replace(".", "");
if (Strings.isNullOrEmpty(locationVal)) {
throw new AnalysisException("Invalid replication allocation
location tag property: " + location);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]