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

Method with_statement

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

Adjust print options based on any statement specific requirements

(mut self, statement: &Statement)

Source from the content-addressed store, hash-verified

365 }
366 /// Adjust print options based on any statement specific requirements
367 fn with_statement(mut self, statement: &Statement) -> Self {
368 if let Statement::Statement(sql_stmt) = statement {
369 // SHOW / SHOW ALL
370 if let sqlparser::ast::Statement::ShowVariable { .. } = sql_stmt.as_ref() {
371 self.inner.maxrows = MaxRows::Unlimited
372 }
373 }
374 self
375 }
376
377 /// Adjust print options based on any plan specific requirements
378 fn with_plan(mut self, plan: &LogicalPlan) -> Self {

Callers 1

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected