You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/02/19 03:24:18 UTC
[GitHub] [incubator-doris] kangpinghuang commented on a change in pull
request #2941: drop index when index column is dropped
kangpinghuang commented on a change in pull request #2941: drop index when index column is dropped
URL: https://github.com/apache/incubator-doris/pull/2941#discussion_r381058492
##########
File path: fe/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
##########
@@ -224,7 +225,17 @@ private void processDropColumn(DropColumnClause alterClause, OlapTable olapTable
}
}
}
-
+
+ Iterator<Index> it = indexes.iterator();
+ while(it.hasNext()){
+ Index index = it.next();
+ if(index.getIndexType() == IndexDef.IndexType.BITMAP
Review comment:
If the column is dropped, all type of index should be dropped, so here should not add this if clause.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org