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

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

Closed
ghost opened this issue Nov 29, 2021 · 0 comments · Fixed by #1189
Closed

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

ghost opened this issue Nov 29, 2021 · 0 comments · Fixed by #1189
Assignees
Labels
bug Something isn't working powerBI v2.5.0 'Issues and PRs related to version v2.5.0'

Comments

@ghost
Copy link

ghost commented Nov 29, 2021

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.

@ghost ghost added Beta bug Something isn't working untriaged labels Nov 29, 2021
@ghost ghost changed the title Aliasing with the same alias results in ClassCastException[BUG] Aliasing with the same alias results in RuntimeException[BUG] Nov 29, 2021
@joshuali925 joshuali925 added powerBI and removed Beta labels Dec 10, 2021
@ghost ghost changed the title Aliasing with the same alias results in RuntimeException[BUG] Lack of support for subqueries results in RuntimeException[BUG] Dec 17, 2021
@anirudha anirudha removed the untriaged label Apr 7, 2022
@dai-chen dai-chen added the v2.5.0 'Issues and PRs related to version v2.5.0' label Dec 16, 2022
@dai-chen dai-chen self-assigned this Dec 16, 2022
@dai-chen dai-chen linked a pull request Dec 22, 2022 that will close this issue
6 tasks
@dai-chen dai-chen moved this to Done in SQL Engineering Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working powerBI v2.5.0 'Issues and PRs related to version v2.5.0'
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants