Skip to content

fix distinct * incorrect names resolving

Emir Vildanov requested to merge distinct-asterisk into main

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 with cargo 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

Merge request reports