[fix](planner) forbidden query in insert value list (#19493)

This commit is contained in:
LiBinfeng
2023-05-12 19:46:19 +08:00
committed by GitHub
parent 4142cc0e8c
commit 316223ef34

View File

@ -640,6 +640,9 @@ public class NativeInsertStmt extends InsertStmt {
}
expr = new StringLiteral(targetColumns.get(i).getDefaultValue());
}
if (expr instanceof Subquery) {
throw new AnalysisException("Insert values can not be query");
}
expr.analyze(analyzer);