Regression: Grouping by an expression with an alias results in Schema error: Schema contains duplicate unqualified field name
#8628
Labels
bug
Something isn't working
Describe the bug
If you use the DataFrame API or LogicalPlanBuilder to group using an expression that is aliased to the same name as an existing column (which you can't do directly via SQL) it will error with
Schema error: Schema contains duplicate unqualified field name
To Reproduce
Will error with
As the code in XXX will introduce a duplicate copy of c2
Expected behavior
The test should pass
Additional context
This is a regression introduced in #8356. The test passes prior to that PR and fails after warts
8f9d6e3
Error querying: Tonic(Status { code: InvalidArgument, message: "Error while planning query: Schema error: Schema contains duplicate unqualified field name time", metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Fri, 22 Dec 2023 15:46:50 GMT", "content-length": "0"} }, source: None })
The text was updated successfully, but these errors were encountered: