Skip to content

Commit 5f0a8c6

Browse files
authored
[fix](inverted index) remove shadow prefix when matching index columns in schema change (apache#57006)
1 parent e51d64d commit 5f0a8c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • fe/fe-core/src/main/java/org/apache/doris/catalog

‎fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ public List<Integer> getColumnUniqueIds(List<Column> schema) {
285285
if (schema != null) {
286286
for (String columnName : columns) {
287287
for (Column column : schema) {
288-
if (columnName.equalsIgnoreCase(column.getName())) {
288+
// Remove shadow prefix when comparing to handle schema change scenarios
289+
if (columnName.equalsIgnoreCase(
290+
Column.removeNamePrefix(column.getName()))) {
289291
columnUniqueIds.add(column.getUniqueId());
290292
}
291293
}

0 commit comments

Comments
 (0)