morningman commented on code in PR #18822: URL: https://github.com/apache/doris/pull/18822#discussion_r1181243070
########## fe/fe-core/src/main/java/org/apache/doris/planner/OlapTableSink.java: ########## @@ -212,7 +212,7 @@ private TOlapTableSchemaParam createSchema(long dbId, OlapTable table) { List<String> columns = Lists.newArrayList(); List<TColumn> columnsDesc = Lists.newArrayList(); List<TOlapTableIndex> indexDesc = Lists.newArrayList(); - columns.addAll(indexMeta.getSchema().stream().map(Column::getName).collect(Collectors.toList())); + columns.addAll(indexMeta.getSchema().stream().map(Column::getNonShadowName).collect(Collectors.toList())); Review Comment: Oh, I see. The `columns` here is for loading task, and the schema will be saved in rowset's meta(not tablet's meta). And for rowset meta, there should be no column with `shadow` prefix. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org