You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let right_plan_with_filter_schema = table_scan_with_filters(Some("right_table"),&schema_right,None,vec![col("right_table.age").gt(lit(10))])?
1054
+
.build()?;
1055
+
let right_plan_with_duplicated_filter = LogicalPlanBuilder::from(right_plan_with_filter_schema.clone()).filter(col("right_table.age").gt(lit(10)))?.build()?;
1056
+
1057
+
let join_plan_duplicated_filter = LogicalPlanBuilder::from(left_plan)
1058
+
.join(
1059
+
right_plan_with_duplicated_filter,
1060
+
datafusion_expr::JoinType::Inner,
1061
+
(vec!["left.id"],vec!["right_table.id"]),
1062
+
Some(col("left.id").gt(lit(5))),
1063
+
)?
1064
+
.build()?;
1065
+
1066
+
let sql = plan_to_sql(&join_plan_duplicated_filter)?;
1067
+
1068
+
let expected_sql = r#"SELECT * FROM left_table AS "left" JOIN right_table ON "left".id = right_table.id AND (("left".id > 5) AND ("left"."name" LIKE 'some_name' AND (right_table.age > 10)))"#;
0 commit comments