[enhancement](group_commit): refector relay wal code (#29183)

This commit is contained in:
huanghaibin
2023-12-30 12:59:46 +08:00
committed by GitHub
parent 30b7357604
commit 03901b9a7a
16 changed files with 351 additions and 328 deletions

View File

@ -1110,7 +1110,7 @@ public class NativeInsertStmt extends InsertStmt {
}
public void analyzeGroupCommit(Analyzer analyzer) throws AnalysisException {
if (isGroupCommitStreamLoadSql && (targetTable instanceof OlapTable)
if (isGroupCommitStreamLoadSql && targetTable != null && (targetTable instanceof OlapTable)
&& !((OlapTable) targetTable).getTableProperty().getUseSchemaLightChange()) {
throw new AnalysisException(
"table light_schema_change is false, can't do http_stream with group commit mode");