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

Method unparse_to_statement

datafusion/sql/tests/cases/plan_to_sql.rs:2256–2267  ·  view source on GitHub ↗
(
        &self,
        node: &dyn UserDefinedLogicalNode,
        unparser: &Unparser,
    )

Source from the content-addressed store, hash-verified

2254
2255impl UserDefinedLogicalNodeUnparser for MockStatementUnparser {
2256 fn unparse_to_statement(
2257 &self,
2258 node: &dyn UserDefinedLogicalNode,
2259 unparser: &Unparser,
2260 ) -> Result<UnparseToStatementResult> {
2261 if let Some(plan) = node.as_any().downcast_ref::<MockUserDefinedLogicalPlan>() {
2262 let input = unparser.plan_to_sql(&plan.input)?;
2263 Ok(UnparseToStatementResult::Modified(input))
2264 } else {
2265 Ok(UnparseToStatementResult::Unmodified)
2266 }
2267 }
2268}
2269
2270struct UnusedUnparser {}

Callers

nothing calls this directly

Calls 2

plan_to_sqlMethod · 0.80
as_anyMethod · 0.45

Tested by

no test coverage detected