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
Error: Plan("Projections require unique expression names but the expression \"data.a\" at position 0 and \"data.a\" at position 1 have the same name. Consider aliasing (\"AS\") one of them.")
To Reproduce
Adding case in datafusion/substrait/tests/roundtrip_logical_plan.rs like:
#[tokio::test]asyncfnroundtrip_alias_in_projection() -> Result<()>{roundtrip("SELECT a as alias_a, a FROM data").await}
Expected behavior
It should generate correct LogicalPlan without error
Additional context
No response
The text was updated successfully, but these errors were encountered:
#[tokio::test]asyncfnroundtrip_field_alias() -> Result<()>{roundtrip("SELECT data.a as b FROM data").await}
Fails with
Projection: data.a AS b
TableScan: data projection=[a]
TableScan: data projection=[a]
thread 'cases::roundtrip_logical_plan::roundtrip_field_alias' panicked at 'assertion failed: `(left == right)`
left: `"Projection: data.a AS b\n TableScan: data projection=[a]"`,
right: `"TableScan: data projection=[a]"`
Describe the bug
SQLs like these will fail:
or
The error message looks like
To Reproduce
Adding case in
datafusion/substrait/tests/roundtrip_logical_plan.rs
like:Expected behavior
It should generate correct LogicalPlan without error
Additional context
No response
The text was updated successfully, but these errors were encountered: