Skip to content

Lack of support for subqueries results in RuntimeException[BUG] #304

Closed

Description

Describe the bug
Support for multiple subqueries seem to lack and results in a RuntimeException. This is an issue with a generated query by Power BI.

Or for query issues:

  1. Run the query: select bool0, ITBL.C2, ITBL.C3 from (select bool0, C1, case when not C1 is null then cast(C1 as integer) else 0 end as C2, case when C1 is null then 0 else 1 end as C3 from (select bool0, bool0 as C1 from calcs ) as ITBL group by bool0, C1 ) as ITBL order by ITBL.C2, ITBL.C3 limit 501
  2. See error RuntimeException
    image

Expected behavior
image

Additional context
Removing the outer most query works. However, as soon as it is place in an outer query of even just SELECT * FROM (), then it does not work.

Activity

  1. ghost added on Nov 29, 2021
  2. ghost added
    bug
    on Nov 29, 2021
  3. ghost changed the title [-]Aliasing with the same alias results in ClassCastException[BUG][/-] [+]Aliasing with the same alias results in RuntimeException[BUG][/+] on Nov 29, 2021
  4. ghost changed the title [-]Aliasing with the same alias results in RuntimeException[BUG][/-] [+]Lack of support for subqueries results in RuntimeException[BUG][/+] on Dec 17, 2021
  5. added
    v2.5.0
    on Dec 16, 2022
  6. self-assigned this
    on Dec 16, 2022
  7. linked a pull request that will close this issueFix back quoted alias of FROM subquery #1189on Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpowerBIv2.5.0

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions