fix distinct * incorrect names resolving
Summarize the changes
This MR fixes error of wrong references resolving in queries with distinct *
where columns with the same name but with different table origin lie under * (e.g. SELECT distinct * FROM (SELECT "id" FROM "t1") JOIN (SELECT "id" FROM "t2") ON TRUE
).
Closes #765 (closed).
Ensure that
-
New code is covered by unit and integration tests. -
Related issues would be automatically closed with gitlab's closing pattern ( Closes #issue_number
). -
Public modules are documented (check the rendered version withcargo doc --open
). -
(if PEST grammar has changed) EBNF grammar reflects these changes (check the result with railroad diagram generator.
Next steps
- Cherry-pick to: 24.6