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: port unstable subquery to sqllogicaltest #6659

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Conversation

jackwener
Copy link
Member

Which issue does this PR close?

Closes #.

Rationale for this change

#6457 add some unstable test.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jun 13, 2023
@jackwener jackwener requested a review from alamb June 13, 2023 13:53
@jackwener jackwener changed the title refactor: port subquery to sqllogicaltest fix: port unstable subquery to sqllogicaltest Jun 13, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @jackwener

--------------AggregateExec: mode=Partial, gby=[t2_id@0 as t2_id], aggr=[SUM(t2.t2_int)]
----------------MemoryExec: partitions=4, partition_sizes=[1, 0, 0, 0]

query II
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you have to put rowsort on this line to make sure the order is consistent given the query doesn't ensure it:

Suggested change
query II
query II rowsort

Thanks @jackwener

[Diff] (-expected|+actual)
+   22 1
    33 NULL
    11 3
-   22 1
    44 3
at tests/sqllogictests/test_files/subquery.slt:137

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I have just added. Thanks for reminder

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think the unstable is due to result without sorting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants