Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #876 - column reference "_age_default_alias_0" is ambiguous #931

Merged
merged 1 commit into from
Jun 1, 2023

Commits on Jun 1, 2023

  1. Fix issue apache#876 - column reference "_age_default_alias_0" is amb…

    …iguous
    
    - The problem was with get_next_default_alias function which was not
      generating unique aliases.
    - Every clause transformed as a subquery has its own cpstate which is
      being freed after it is tranformed. The root cpstate is the one that
      has the default_alias_number initialized. So we need to reach the
      root cpstate to get the next correct default alias number.
    - This change also fixed some previously incorrect results.
    - Added additional regression tests.
    MuhammadTahaNaveed committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    7ff94cf View commit details
    Browse the repository at this point in the history