TsukiokaKogane commented on code in PR #62453:
URL: https://github.com/apache/doris/pull/62453#discussion_r3085592900
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/SetPreAggStatus.java:
##########
@@ -148,17 +149,21 @@ public Plan visit(Plan plan, Stack<PreAggInfoContext>
context) {
@Override
public Plan visitLogicalOlapScan(LogicalOlapScan logicalOlapScan,
Stack<PreAggInfoContext> context) {
+ if (logicalOlapScan instanceof LogicalOlapTableStreamScan) {
+ // no pre-agg for LogicalOlapTableStreamScan
+ return logicalOlapScan;
+ }
if (logicalOlapScan.isPreAggStatusUnSet()) {
long selectIndexId = logicalOlapScan.getSelectedIndexId();
MaterializedIndexMeta meta =
logicalOlapScan.getTable().getIndexMetaByIndexId(selectIndexId);
if (meta.getKeysType() == KeysType.DUP_KEYS || (meta.getKeysType()
== KeysType.UNIQUE_KEYS
&&
logicalOlapScan.getTable().getEnableUniqueKeyMergeOnWrite())
|| (meta.getKeysType() == KeysType.UNIQUE_KEYS
- && logicalOlapScan.getTable().isMorTable()
- && ConnectContext.get() != null
- &&
ConnectContext.get().getSessionVariable().isReadMorAsDupEnabled(
- logicalOlapScan.getTable().getQualifiedDbName(),
- logicalOlapScan.getTable().getName()))) {
+ && logicalOlapScan.getTable().isMorTable()
Review Comment:
fixed
--
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]