Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,17 @@ void testDirectLowerMvQueryUsesUpperMv() throws Exception {
void testIvmOutputPredicatesSkipHiddenColumns(boolean showHiddenColumns) throws Exception {
initMvRewriteSession();
boolean originalEnableTableStream = Config.enable_table_stream;
boolean originalEnableFeatureBinlog = Config.enable_feature_binlog;
boolean originalEnableFeatureChangelog = Config.enable_feature_changelog;
boolean originalShowHiddenColumns = connectContext.getSessionVariable().showHiddenColumns();
Config.enable_table_stream = true;
// master gates ROW-binlog table creation behind enable_feature_binlog; the IVM base table needs it.
Config.enable_feature_binlog = true;
// master gates changelog table creation behind enable_feature_changelog; the IVM base table needs it.
Config.enable_feature_changelog = true;
try {
dropMvByNereids("drop materialized view if exists mv_relation_implied_ivm");
dropTableWithSql("drop table if exists relation_implied_ivm_base");
createTable("create table relation_implied_ivm_base (id bigint, score bigint) "
+ "duplicate key(id) distributed by hash(id) buckets 1 "
+ "properties('replication_num' = '1', 'binlog.enable' = 'true', 'binlog.format' = 'ROW')");
+ "properties('replication_num' = '1', 'changelog.enable' = 'true')");
createMvByNereids("create materialized view mv_relation_implied_ivm "
+ "BUILD DEFERRED REFRESH INCREMENTAL ON MANUAL\n"
+ "DISTRIBUTED BY RANDOM BUCKETS 1\n"
Expand Down Expand Up @@ -458,7 +458,7 @@ void testIvmOutputPredicatesSkipHiddenColumns(boolean showHiddenColumns) throws
} finally {
connectContext.getSessionVariable().setShowHiddenColumns(originalShowHiddenColumns);
Config.enable_table_stream = originalEnableTableStream;
Config.enable_feature_binlog = originalEnableFeatureBinlog;
Config.enable_feature_changelog = originalEnableFeatureChangelog;
dropMvByNereids("drop materialized view if exists mv_relation_implied_ivm");
dropTableWithSql("drop table if exists relation_implied_ivm_base");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ suite("test_ivm_datetime_sequence") {
PROPERTIES (
"replication_num" = "1",
"enable_unique_key_merge_on_write" = "true",
"binlog.enable" = "true",
"binlog.format" = "ROW",
"binlog.need_historical_value" = "true",
"changelog.enable" = "true",
"changelog.need_historical_value" = "true",
"function_column.sequence_col" = "seq_dt"
)
"""
Expand All @@ -64,9 +63,8 @@ suite("test_ivm_datetime_sequence") {
PROPERTIES (
"replication_num" = "1",
"enable_unique_key_merge_on_write" = "true",
"binlog.enable" = "true",
"binlog.format" = "ROW",
"binlog.need_historical_value" = "true"
"changelog.enable" = "true",
"changelog.need_historical_value" = "true"
)
"""
sql """
Expand Down
Loading