MCPcopy Create free account
hub / github.com/apache/datafusion / ideal_batch_size

Method ideal_batch_size

datafusion/physical-expr/src/async_scalar_function.rs:100–107  ·  view source on GitHub ↗

Return the ideal batch size for this function

(&self)

Source from the content-addressed store, hash-verified

98
99 /// Return the ideal batch size for this function
100 pub fn ideal_batch_size(&self) -> Result<Option<usize>> {
101 if let Some(expr) = self.func.downcast_ref::<ScalarFunctionExpr>()
102 && let Some(udf) = expr.fun().inner().downcast_ref::<AsyncScalarUDF>()
103 {
104 return Ok(udf.ideal_batch_size());
105 }
106 not_impl_err!("Can't get ideal_batch_size from {:?}", self.func)
107 }
108
109 /// This (async) function is called for each record batch to evaluate the LLM expressions
110 ///

Callers 1

invoke_with_argsMethod · 0.45

Calls 2

innerMethod · 0.45
funMethod · 0.45

Tested by

no test coverage detected