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: limit with offset should return correct results #359

Merged
merged 2 commits into from
May 1, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented May 1, 2024

Which issue does this PR close?

Closes #358.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@viirya viirya force-pushed the fix_subquery_limit branch from 79615a7 to da61579 Compare May 1, 2024 00:53
@viirya
Copy link
Member Author

viirya commented May 1, 2024

cc @sunchao @andygrove

@viirya viirya merged commit c900819 into apache:main May 1, 2024
28 checks passed
@viirya
Copy link
Member Author

viirya commented May 1, 2024

Merged. Thanks.

@viirya viirya deleted the fix_subquery_limit branch May 1, 2024 04:24
@@ -340,7 +340,7 @@ class CometSparkSessionExtensions
op
}

case op: LocalLimitExec =>
case op: LocalLimitExec if getOffset(op) == 0 =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a withInfo for the case when offset > 0 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I missed it. I will create a follow up. Thanks.

himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
* fix: limit with offset should return correct results

* Move test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit with offset return incorrect results
3 participants