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:37:20 UTC
[doris] 02/25: [Fix](topn opt) forbit outfile when using 2phase read (#21991)
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 d6bc08879f230a64a249de689230ed50811a8c9a
Author: lihangyu <15...@163.com>
AuthorDate: Thu Jul 20 10:32:30 2023 +0800
[Fix](topn opt) forbit outfile when using 2phase read (#21991)
"Enabling two-phase query for similar select * from tbl into outfile "file:/xxx/" format as orc; queries can lead to performance issues due to the fetch operation."
---
fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java | 3 ++-
1 file changed, 2 insertions(+), 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 9a98195e03..da9fca26c9 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
@@ -722,7 +722,8 @@ public class SelectStmt extends QueryStmt {
if (getAggInfo() != null
|| getHavingPred() != null
|| getWithClause() != null
- || getAnalyticInfo() != null) {
+ || getAnalyticInfo() != null
+ || hasOutFileClause()) {
return false;
}
// ignore short circuit query
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org