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

Function assert_same_plan

datafusion/core/tests/dataframe/mod.rs:1823–1825  ·  view source on GitHub ↗

Compare the formatted string representation of two plans for equality

(plan1: &LogicalPlan, plan2: &LogicalPlan)

Source from the content-addressed store, hash-verified

1821
1822/// Compare the formatted string representation of two plans for equality
1823fn assert_same_plan(plan1: &LogicalPlan, plan2: &LogicalPlan) {
1824 assert_eq!(format!("{plan1:?}"), format!("{plan2:?}"));
1825}
1826
1827/// Create a logical plan from a SQL query
1828async fn create_plan(sql: &str) -> Result<LogicalPlan> {

Callers 15

select_columnsFunction · 0.85
select_exprFunction · 0.85
select_allFunction · 0.85
select_exprsFunction · 0.85
select_with_window_exprsFunction · 0.85
drop_columnsFunction · 0.85
drop_columns_qualifiedFunction · 0.85
test_distinctFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…