my-vegetable-has-exploded commented on code in PR #34447:
URL: https://github.com/apache/doris/pull/34447#discussion_r1594020468
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/NativeInsertStmt.java:
##########
@@ -579,7 +579,8 @@ private void analyzeSubquery(Analyzer analyzer, boolean
skipCheck) throws UserEx
}
// hll column must in mentionedColumns
for (Column col : targetTable.getBaseSchema()) {
- if (col.getType().isObjectStored() &&
!mentionedColumns.contains(col.getName())) {
+ if (col.getType().isObjectStored() && !col.hasDefaultValue()
Review Comment:
If column has defaultValue, skip this check.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]