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

Method return_error

datafusion/datasource/src/morsel/mocks.rs:400–405  ·  view source on GitHub ↗

Adds one planning step that fails during CPU planning.

(mut self, message: impl Into<String>)

Source from the content-addressed store, hash-verified

398
399 /// Adds one planning step that fails during CPU planning.
400 pub(crate) fn return_error(mut self, message: impl Into<String>) -> Self {
401 self.steps.push(PlannerStep::Error {
402 error: MockError(message.into()),
403 });
404 self
405 }
406
407 /// Finalizes the configured mock planner.
408 pub(crate) fn build(self) -> MockPlanner {

Callers 1

Calls 3

MockErrorClass · 0.85
pushMethod · 0.45
intoMethod · 0.45

Tested by

no test coverage detected