Skip to content

Commit

Permalink
[test](mtmv) Fix regression test unstable and add relevant test log #…
Browse files Browse the repository at this point in the history
…46299 #46546 (#47112)

### What problem does this PR solve?

1 test](mtmv) Fix regression test unstable and add relevant test log
#46299
cb6672a


2 [test](mtmv) Fix sync mv not partition in rewrite test and some other
test problems
#46546
4bd106b

3 Fix mv regression test fail occasionally and add some log
#47103 
2e61451
  • Loading branch information
seawinde authored Feb 6, 2025
1 parent 9e4b2b3 commit 989973f
Show file tree
Hide file tree
Showing 27 changed files with 890 additions and 215 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ private List<SyncMaterializationContext> createSyncMvContexts(OlapTable olapTabl
}
for (Map.Entry<Long, MaterializedIndexMeta> entry : olapTable.getVisibleIndexIdToMeta().entrySet()) {
long indexId = entry.getKey();
String indexName = olapTable.getIndexNameById(indexId);
try {
if (indexId != baseIndexId) {
MaterializedIndexMeta meta = entry.getValue();
String indexName = olapTable.getIndexNameById(indexId);
String createMvSql;
if (meta.getDefineStmt() != null) {
// get the original create mv sql
Expand Down Expand Up @@ -211,8 +211,9 @@ private List<SyncMaterializationContext> createSyncMvContexts(OlapTable olapTabl
}
}
} catch (Exception exception) {
LOG.warn(String.format("createSyncMvContexts exception, index id is %s, index name is %s",
entry.getValue(), entry.getValue()), exception);
LOG.warn(String.format("createSyncMvContexts exception, index id is %s, index name is %s, "
+ "table name is %s", entry.getValue(), indexName, olapTable.getQualifiedName()),
exception);
}
}
return contexts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,12 @@ private Statistics computeOlapScan(OlapScan olapScan) {
// mv is selected, return its estimated stats
Optional<Statistics> optStats = cascadesContext.getStatementContext()
.getStatistics(((Relation) olapScan).getRelationId());
LOG.info("computeOlapScan optStats isPresent {}, tableRowCount is {}, table name is {}",
optStats.isPresent(), tableRowCount, olapTable.getQualifiedName());
if (optStats.isPresent()) {
double selectedPartitionsRowCount = getSelectedPartitionRowCount(olapScan);
LOG.info("computeOlapScan optStats is {}, selectedPartitionsRowCount is {}", optStats.get(),
selectedPartitionsRowCount);
if (selectedPartitionsRowCount == -1) {
selectedPartitionsRowCount = tableRowCount;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ public enum IgnoreSplitType {
public int maxScanKeyNum = 48;
@VariableMgr.VarAttr(name = MAX_PUSHDOWN_CONDITIONS_PER_COLUMN)
public int maxPushdownConditionsPerColumn = 1024;
@VariableMgr.VarAttr(name = SHOW_HIDDEN_COLUMNS, flag = VariableMgr.SESSION_ONLY)
@VariableMgr.VarAttr(name = SHOW_HIDDEN_COLUMNS, flag = VariableMgr.SESSION_ONLY, needForward = true)
public boolean showHiddenColumns = false;

@VariableMgr.VarAttr(name = ALLOW_PARTITION_COLUMN_NULLABLE, description = {
Expand Down Expand Up @@ -1501,25 +1501,25 @@ public void setEnableLeftZigZag(boolean enableLeftZigZag) {
/**
* For debug purpose, don't merge unique key and agg key when reading data.
*/
@VariableMgr.VarAttr(name = SKIP_STORAGE_ENGINE_MERGE)
@VariableMgr.VarAttr(name = SKIP_STORAGE_ENGINE_MERGE, needForward = true)
public boolean skipStorageEngineMerge = false;

/**
* For debug purpose, skip delete predicate when reading data.
*/
@VariableMgr.VarAttr(name = SKIP_DELETE_PREDICATE)
@VariableMgr.VarAttr(name = SKIP_DELETE_PREDICATE, needForward = true)
public boolean skipDeletePredicate = false;

/**
* For debug purpose, skip delete sign when reading data.
*/
@VariableMgr.VarAttr(name = SKIP_DELETE_SIGN)
@VariableMgr.VarAttr(name = SKIP_DELETE_SIGN, needForward = true)
public boolean skipDeleteSign = false;

/**
* For debug purpose, skip delete bitmap when reading data.
*/
@VariableMgr.VarAttr(name = SKIP_DELETE_BITMAP)
@VariableMgr.VarAttr(name = SKIP_DELETE_BITMAP, needForward = true)
public boolean skipDeleteBitmap = false;

// This variable replace the original FE config `recover_with_skip_missing_version`.
Expand Down
Loading

0 comments on commit 989973f

Please sign in to comment.