Adjust print options based on any plan specific requirements
(mut self, plan: &LogicalPlan)
| 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 { |
no outgoing calls
no test coverage detected