[chore](topn-opt) temporary disable two phase read for TableQueryPlanActionQ (#22543)
This commit is contained in:
@ -122,6 +122,12 @@ public class TableQueryPlanAction extends RestBaseController {
|
||||
}
|
||||
table.readLock();
|
||||
try {
|
||||
if (ConnectContext.get() != null
|
||||
&& ConnectContext.get().getSessionVariable() != null) {
|
||||
// Disable some optimizations, since it's not fully supported
|
||||
// TODO support it
|
||||
ConnectContext.get().getSessionVariable().setEnableTwoPhaseReadOpt(false);
|
||||
}
|
||||
// parse/analysis/plan the sql and acquire tablet distributions
|
||||
handleQuery(ConnectContext.get(), fullDbName, tblName, sql, resultMap);
|
||||
} finally {
|
||||
|
||||
@ -1241,6 +1241,10 @@ public class SessionVariable implements Serializable, Writable {
|
||||
return queryTimeoutS;
|
||||
}
|
||||
|
||||
public void setEnableTwoPhaseReadOpt(boolean enable) {
|
||||
enableTwoPhaseReadOpt = enable;
|
||||
}
|
||||
|
||||
public int getMaxExecutionTimeMS() {
|
||||
return maxExecutionTimeMS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user