Skip to content

Conversation

@comphead
Copy link
Contributor

@comphead comphead commented May 2, 2022

Which issue does this PR close?

Closes #2381.

Rationale for this change

What changes are included in this PR?

Fix bug with nested queries panicked because of NotImplemented

Are there any user-facing changes?

@comphead comphead marked this pull request as ready for review May 2, 2022 08:39
@xudong963 xudong963 added the bug Something isn't working label May 2, 2022
Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @comphead!

) foo";
let actual = execute_to_batches(&ctx, sql).await;
// the purpose of this test is just to make sure the query produces a valid plan
let expected = vec!["+-----+", "| cnt |", "+-----+", "| 0 |", "+-----+"];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you disable rustfmt for this line and format it so that it is easier to read, as shown in #2413

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to go ahead and merge this. Perhaps we can improve the test formatting as a separate PR.

@andygrove andygrove merged commit 9461946 into apache:master May 2, 2022
@comphead comphead deleted the nested_query_fix branch May 3, 2022 12:36
gandronchik pushed a commit to cube-js/arrow-datafusion that referenced this pull request Sep 8, 2022
gandronchik added a commit to cube-js/arrow-datafusion that referenced this pull request Sep 12, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQL parser does not support all forms of nested subquery

3 participants