[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."
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user