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

Method with_plan

datafusion-cli/src/exec.rs:378–390  ·  view source on GitHub ↗

Adjust print options based on any plan specific requirements

(mut self, plan: &LogicalPlan)

Source from the content-addressed store, hash-verified

376
377 /// Adjust print options based on any plan specific requirements
378 fn with_plan(mut self, plan: &LogicalPlan) -> Self {
379 // For plans like `Explain` ignore `MaxRows` option and always display
380 // all rows
381 if matches!(
382 plan,
383 LogicalPlan::Explain(_)
384 | LogicalPlan::DescribeTable(_)
385 | LogicalPlan::Analyze(_)
386 ) {
387 self.inner.maxrows = MaxRows::Unlimited;
388 }
389 self
390 }
391
392 /// Finalize and return the inner `PrintOptions`
393 fn into_inner(mut self) -> PrintOptions {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected