You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/07/20 14:06:56 UTC
[doris] 12/21: [Bug](topn opt) disable topn 2 phase read when storage policy is not emtpy (#21909)
This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
commit f4a3427aaae33d99cf178b3b1267b0fa29b4bce1
Author: lihangyu <15...@163.com>
AuthorDate: Wed Jul 19 10:28:41 2023 +0800
[Bug](topn opt) disable topn 2 phase read when storage policy is not emtpy (#21909)
---
fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
index e2ce149c4d..9a98195e03 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
@@ -758,7 +758,7 @@ public class SelectStmt extends QueryStmt {
LOG.debug("only support duplicate key or MOW model");
return false;
}
- if (!olapTable.getEnableLightSchemaChange()) {
+ if (!olapTable.getEnableLightSchemaChange() || !Strings.isNullOrEmpty(olapTable.getStoragePolicy())) {
return false;
}
if (getOrderByElements() != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org