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

[CALCITE-4617] Wrong offset when SortJoinTransposeRule pushes a sort node with an offset #2417

Closed
wants to merge 1 commit into from
Closed

Conversation

scrozon
Copy link

@scrozon scrozon commented May 21, 2021

The sort node added on top of the join shouldn't re-apply the offset of the original sort node, otherwise we end up skipping rows twice

@scrozon scrozon changed the title [CALCITE-4617] fix offset in SortJoinTransposeRule [CALCITE-4617] Wrong offset when SortJoinTransposeRule pushes a sort node with an offset May 21, 2021
@rubenada
Copy link
Contributor

Would it be possible to have a unit test "showing" the error? (i.e. the test returns an incorrect result with current code, and correct result with the patch)

@rubenada
Copy link
Contributor

LGTM

@rubenada rubenada added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label May 28, 2021
@rubenada
Copy link
Contributor

@scrozon as discussed in the Jira, could you please provide more unit tests for this rule?

@rubenada rubenada removed the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label May 29, 2021
…fset twice (Sylvain Crozon)

the added sorted shouldn't re-apply offset, otherwise we end up skipping rows twice
@Humbedooh Humbedooh deleted the branch apache:master April 26, 2022 14:21
@Humbedooh Humbedooh closed this Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants