This is an automated email from the ASF dual-hosted git repository.
airborne pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5f0a8c68ded [fix](inverted index) remove shadow prefix when matching
index columns in schema change (#57006)
5f0a8c68ded is described below
commit 5f0a8c68ded9933b1ea7df709cdf1322bad48dea
Author: zzzxl <[email protected]>
AuthorDate: Tue Oct 21 11:21:13 2025 +0800
[fix](inverted index) remove shadow prefix when matching index columns in
schema change (#57006)
---
fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java
index 44200ea5a59..2bec0471602 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java
@@ -285,7 +285,9 @@ public class Index implements Writable {
if (schema != null) {
for (String columnName : columns) {
for (Column column : schema) {
- if (columnName.equalsIgnoreCase(column.getName())) {
+ // Remove shadow prefix when comparing to handle schema
change scenarios
+ if (columnName.equalsIgnoreCase(
+ Column.removeNamePrefix(column.getName()))) {
columnUniqueIds.add(column.getUniqueId());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]