luwei16 commented on code in PR #56143:
URL: https://github.com/apache/doris/pull/56143#discussion_r2417362024
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java:
##########
@@ -1611,6 +1611,20 @@ public void setSequenceInfo(Type type, Column refColumn)
{
this.hasSequenceCol = true;
this.sequenceType = type;
+ Column sequenceCol = buildSequenceCol(type, refColumn);
+ // add sequence column at last
+ fullSchema.add(sequenceCol);
+ nameToColumn.put(Column.SEQUENCE_COL, sequenceCol);
+ for (MaterializedIndexMeta indexMeta : indexIdToMeta.values()) {
+ List<Column> schema = indexMeta.getSchema();
+ if (indexMeta.getIndexId() != baseIndexId) {
+ sequenceCol = buildSequenceCol(type, refColumn);
+ }
+ schema.add(sequenceCol);
+ }
+ }
+
+ private Column buildSequenceCol(Type type, Column refColumn) {
Review Comment:
Please add a regression case to reproduce this issue
--
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]