[fix](planner) forbidden query in insert value list (#19493)
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user