Skip to content

Commit

Permalink
[fix](cluster key) 3.0 forbid mow cluster key
Browse files Browse the repository at this point in the history
  • Loading branch information
mymeiyi committed Nov 28, 2024
1 parent df705ed commit f003b72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ public void analyze(List<ColumnDef> cols) throws AnalysisException {
}

if (clusterKeysColumnNames != null) {
analyzeClusterKeys(cols);
// analyzeClusterKeys(cols);
// forbid cluster key in 3.0 temporarily
throw new AnalysisException("Cluster key is not supported");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,10 @@ private void validateKeyColumns() {
}
}

if (!clusterKeysColumnNames.isEmpty()) {
// forbid cluster key in 3.0 temporarily
throw new AnalysisException("Cluster key is not supported");
}
if (!clusterKeysColumnNames.isEmpty()) {
// the same code as KeysDesc#analyzeClusterKeys
if (Config.isCloudMode()) {
Expand Down

0 comments on commit f003b72

Please sign in to comment.