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-19314][SS][Catalyst] Do not allow sort before aggregation in Structured Streaming plan #16662

Closed
wants to merge 1 commit into from

Conversation

tdas
Copy link
Contributor

@tdas tdas commented Jan 20, 2017

What changes were proposed in this pull request?

Sort in a streaming plan should be allowed only after a aggregation in complete mode. Currently it is incorrectly allowed when present anywhere in the plan. It gives unpredictable potentially incorrect results.

How was this patch tested?

New test

@tdas tdas changed the title [SPARK-19314] Do not allow sort before aggregation in Structured Streaming plan [SPARK-19314][SS][Catalyst] Do not allow sort before aggregation in Structured Streaming plan Jan 20, 2017
@zsxwing
Copy link
Member

zsxwing commented Jan 20, 2017

LGTM pending tests

@SparkQA
Copy link

SparkQA commented Jan 20, 2017

Test build #71736 has finished for PR 16662 at commit c5c2e79.

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

asfgit pushed a commit that referenced this pull request Jan 20, 2017
…tructured Streaming plan

## What changes were proposed in this pull request?

Sort in a streaming plan should be allowed only after a aggregation in complete mode. Currently it is incorrectly allowed when present anywhere in the plan. It gives unpredictable potentially incorrect results.

## How was this patch tested?
New test

Author: Tathagata Das <[email protected]>

Closes #16662 from tdas/SPARK-19314.

(cherry picked from commit 552e5f0)
Signed-off-by: Tathagata Das <[email protected]>
asfgit pushed a commit that referenced this pull request Jan 20, 2017
…tructured Streaming plan

## What changes were proposed in this pull request?

Sort in a streaming plan should be allowed only after a aggregation in complete mode. Currently it is incorrectly allowed when present anywhere in the plan. It gives unpredictable potentially incorrect results.

## How was this patch tested?
New test

Author: Tathagata Das <[email protected]>

Closes #16662 from tdas/SPARK-19314.

(cherry picked from commit 552e5f0)
Signed-off-by: Tathagata Das <[email protected]>
@asfgit asfgit closed this in 552e5f0 Jan 20, 2017
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…tructured Streaming plan

## What changes were proposed in this pull request?

Sort in a streaming plan should be allowed only after a aggregation in complete mode. Currently it is incorrectly allowed when present anywhere in the plan. It gives unpredictable potentially incorrect results.

## How was this patch tested?
New test

Author: Tathagata Das <[email protected]>

Closes apache#16662 from tdas/SPARK-19314.
cmonkey pushed a commit to cmonkey/spark that referenced this pull request Feb 15, 2017
…tructured Streaming plan

## What changes were proposed in this pull request?

Sort in a streaming plan should be allowed only after a aggregation in complete mode. Currently it is incorrectly allowed when present anywhere in the plan. It gives unpredictable potentially incorrect results.

## How was this patch tested?
New test

Author: Tathagata Das <[email protected]>

Closes apache#16662 from tdas/SPARK-19314.
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.

3 participants