[Enhancement](Planner)fix unclear exception msg when create table. #17473

This commit is contained in:
mch_ucchi
2023-03-07 13:38:20 +08:00
committed by GitHub
parent 357d8c1746
commit b9bb28f22c

View File

@ -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);
}