hello-stephen commented on code in PR #71149:
URL: https://github.com/apache/doris/pull/71149#discussion_r4768460152
##########
be/src/exec/operator/table_function_operator.cpp:
##########
@@ -860,6 +860,9 @@ Status TableFunctionOperatorX::prepare(doris::RuntimeState*
state) {
RETURN_IF_ERROR(fn->prepare());
}
RETURN_IF_ERROR(VExpr::prepare(_vfn_ctxs, state,
operator_row_desc_before_projection()));
+ // Argument expressions can explicitly read FILE content through
fl_get_binary.
+ // Resolve their IO policy before the task is first scheduled.
+ _blockable |= VExpr::contains_blockable_function(_vfn_ctxs);
Review Comment:
[P2] Classify lateral ON expressions as blocking too
For remote Lance BLOBs, `SELECT t.id, u.x FROM t LEFT JOIN LATERAL
unnest(array(t.image)) AS u(x) ON length(fl_get_binary(u.x)) > 0` puts the
content read in `_expand_conjuncts_ctxs`, which this check and the base
operator's checks omit. The outer expansion evaluates that vector
synchronously, so a pipeline with only slot outputs stays on the CPU scheduler
while opening and reading remote BLOBs. Slow storage can occupy its finite
workers and stall unrelated queries. Include the prepared expand conjuncts in
the blocking classification as well.
--
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]