Skip to content

Commit

Permalink
[flink] fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
LinMingQiang committed Nov 26, 2024
1 parent d618b2f commit ea69e54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public String[] call(ProcedureContext procedureContext, String tableId) throws E
return call(procedureContext, tableId, "");
}

public String[] call(ProcedureContext procedureContext, String tableId, String compactStrategy)
public String[] call(ProcedureContext procedureContext, String tableId, String partitions)
throws Exception {
return call(procedureContext, tableId, "", "", compactStrategy, "", "");
return call(procedureContext, tableId, partitions, "", "", "", "");
}

public String[] call(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,16 @@ public void testCompactDatabaseAndTable() {
sql(
"CALL sys.compact('default.T', '', '', '', 'sink.parallelism=1','pt=1')"))
.doesNotThrowAnyException();
assertThatCode(() -> sql("CALL sys.compact('default.T', '', 'zorder', 'k', '','','5s')"))
assertThatCode(
() ->
sql(
"CALL sys.compact('default.T', '', '' ,'zorder', 'k', '','','5s')"))
.message()
.contains("sort compact do not support 'partition_idle_time'.");

assertThatCode(() -> sql("CALL sys.compact('default.T', '', 'full' ,'', '', '','','')"))
.doesNotThrowAnyException();

assertThatCode(() -> sql("CALL sys.compact_database('default')"))
.doesNotThrowAnyException();
}
Expand Down

0 comments on commit ea69e54

Please sign in to comment.