Skip to content

Commit

Permalink
[flink] Compact procedure does not process 'ALL' word (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
leaves12138 committed Mar 21, 2024
1 parent 617bff2 commit 8e57754
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public String[] call(
"You must specify 'order strategy' and 'order by columns' both.");
}

if (!(StringUtils.isBlank(partitions) || "ALL".equals(partitions))) {
if (!(StringUtils.isBlank(partitions))) {
action.withPartitions(ParameterUtils.getPartitions(partitions.split(";")));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private SortCompactAction createAction(String orderStrategy, List<String> column
private void callProcedure(String orderStrategy, List<String> orderByColumns) {
callProcedure(
String.format(
"CALL sys.compact('%s.%s', 'ALL', '%s', '%s')",
"CALL sys.compact('%s.%s', '', '%s', '%s')",
database, tableName, orderStrategy, String.join(",", orderByColumns)),
false,
true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private void callProcedure(
String orderStrategy, String rangeStrategy, List<String> orderByColumns) {
callProcedure(
String.format(
"CALL sys.compact('%s.%s', 'ALL', '%s', '%s','sort-compaction.range-strategy=%s')",
"CALL sys.compact('%s.%s', '', '%s', '%s','sort-compaction.range-strategy=%s')",
database,
tableName,
orderStrategy,
Expand Down

0 comments on commit 8e57754

Please sign in to comment.