Jibing-Li commented on code in PR #31576:
URL: https://github.com/apache/doris/pull/31576#discussion_r1507132118
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java:
##########
@@ -501,7 +501,8 @@ public List<Long> getMvColumnIndexIds(String columnName) {
for (MaterializedIndexMeta meta : getVisibleIndexIdToMeta().values()) {
Column target = meta.getColumnByDefineName(columnName);
if (target != null) {
- ids.add(meta.getIndexId());
+ // Return -1 for base index. This is for compatible with older
version of column stats.
+ ids.add(meta.getIndexId() == baseIndexId ? -1 :
meta.getIndexId());
Review Comment:
added
--
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]