chenkovsky commented on issue #15765:
URL: https://github.com/apache/datafusion/issues/15765#issuecomment-2826836394
```rust
#[tokio::test]
async fn test_substrait_post_join_project() -> Result<()> {
let ctx = create_context().await?;
let sql = "
SELECT
data.a,
data.b,
data.c,
data2.a,
data2.b,
(data.e + data2.a) AS g
FROM data
INNER JOIN data2 ON data.a = data2.a
WHERE
data.b > 0
";
let plan = ctx.sql(sql).await?.into_optimized_plan()?;
println!("logical_plan: {}", plan);
let sub_plan = to_substrait_plan(&plan, &ctx.state())?;
println!("sub_plan: {:#?}", sub_plan);
let plan2 = from_substrait_plan(&ctx.state(), &sub_plan).await?;
println!("logical_plan2: {}", plan2);
assert_eq!(plan2, plan);
Ok(())
}
```
did I miss something? I added an UT in roundtrip_logical_plan.rs, but it
works. and what's the schema of your input parquet?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]