Skip to content

Commit

Permalink
Fix test_transparent_mv_mysql test case
Browse files Browse the repository at this point in the history
Signed-off-by: shuming.li <[email protected]>
  • Loading branch information
LiShuMing committed Dec 31, 2024
1 parent e0465c9 commit ad1e62f
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 263 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,19 @@ public TableCompensation getRefBaseTableCompensation(Table refBaseTable,
*/
public TableCompensation getRefBaseTableCompensationByPartitionKeys(Table refBaseTable,
Optional<LogicalScanOperator> scanOperatorOpt) {
Set<String> toRefreshPartitionNames = mvUpdateInfo.getBaseTableToRefreshPartitionNames(refBaseTable);
if (toRefreshPartitionNames == null) {
return TableCompensation.unknown();
}
if (toRefreshPartitionNames.isEmpty()) {
return TableCompensation.noCompensation();
}
if (refBaseTable.isNativeTableOrMaterializedView()) {
return OlapTableCompensation.build(refBaseTable, mvUpdateInfo, scanOperatorOpt);
} else if (MvPartitionCompensator.isSupportPartitionCompensate(refBaseTable)) {
return ExternalTableCompensation.build(refBaseTable, mvUpdateInfo, scanOperatorOpt);
} else {
// TODO: support more ref base table types
logMVRewrite(mv.getName(), "Unsupported ref base table type: {}", refBaseTable.getName());
return TableCompensation.unknown();
}
Expand Down
2 changes: 1 addition & 1 deletion test/sql/test_agg_state/R/test_agg_state_with_sync_mv.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- name: test_agg_state_with_sync_mv
-- name: test_agg_state_with_sync_mv @slow
CREATE TABLE t1 (
k1 date,
c0 boolean,
Expand Down
2 changes: 1 addition & 1 deletion test/sql/test_agg_state/T/test_agg_state_with_sync_mv.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- name: test_agg_state_with_sync_mv
-- name: test_agg_state_with_sync_mv @slow
CREATE TABLE t1 (
k1 date,
c0 boolean,
Expand Down
Loading

0 comments on commit ad1e62f

Please sign in to comment.