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

[SPARK-22230] Swap per-row order in state store restore. #19461

Closed
wants to merge 1 commit into from

Conversation

jose-torres
Copy link
Contributor

What changes were proposed in this pull request?

In state store restore, for each row, put the saved state before the row in the iterator instead of after.

This fixes an issue where agg(last('attr)) will forever return the last value of 'attr from the first microbatch.

How was this patch tested?

new unit test

@marmbrus
Copy link
Contributor

marmbrus commented Oct 9, 2017

LGTM

@SparkQA
Copy link

SparkQA commented Oct 9, 2017

Test build #82566 has finished for PR 19461 at commit 17ef8a8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Oct 9, 2017

Thanks! Merging to master and 2.2.

@asfgit asfgit closed this in 71c2b81 Oct 9, 2017
@zsxwing
Copy link
Member

zsxwing commented Oct 9, 2017

Oh, there are some conflicts with 2.2. @joseph-torres could you submit a backport PR, please?

@zsxwing
Copy link
Member

zsxwing commented Oct 10, 2017

Discussed offline. We don't need to backport to branch-2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants