morningman commented on a change in pull request #3340:
URL: https://github.com/apache/incubator-doris/pull/3340#discussion_r411387864
##########
File path:
fe/src/main/java/org/apache/doris/planner/MaterializedViewSelector.java
##########
@@ -109,9 +109,22 @@ public BestIndexInfo selectBestMV(ScanNode scanNode)
throws UserException {
long start = System.currentTimeMillis();
Preconditions.checkState(scanNode instanceof OlapScanNode);
OlapScanNode olapScanNode = (OlapScanNode) scanNode;
+
+ ConnectContext connectContext = ConnectContext.get();
+ if (connectContext != null &&
connectContext.getSessionVariable().isUseV2Rollup()) {
Review comment:
Yes, if 'use v2 rollup' is true, only base index will be selected
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]