csun5285 commented on code in PR #70408:
URL: https://github.com/apache/doris/pull/70408#discussion_r4674887591
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/CreateTableCommand.java:
##########
@@ -184,7 +185,9 @@ public void validateCreateTableAsSelect(ConnectContext ctx,
LogicalPlan query) {
Slot s = slots.get(i);
DataType dataType = s.getDataType().conversion();
if (dataType instanceof VariantType) {
- dataType = ((VariantType) dataType).withoutPredefinedFields();
+ // the created column is new, even when the query reads an old
V1 or an external column
+ dataType = ((VariantType) dataType).withoutPredefinedFields()
+ .withSerializeType(TVariantSerializeType.V2);
Review Comment:
ok
--
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]