Skip to content

Conversation

@tdas
Copy link
Contributor

@tdas tdas commented Dec 15, 2016

What changes were proposed in this pull request?

Check whether Aggregation operators on a streaming subplan have aggregate expressions with isDistinct = true.

How was this patch tested?

Added unit test

@tdas
Copy link
Contributor Author

tdas commented Dec 15, 2016

@marmbrus

@SparkQA
Copy link

SparkQA commented Dec 15, 2016

Test build #70170 has finished for PR 16289 at commit dd2b2c8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

}
throwErrorIf(
child.isStreaming && distinctAggExprs.nonEmpty,
"Distinct aggregations are not supported on streaming DataFrames/Datasets, unless" +
Copy link
Contributor

Choose a reason for hiding this comment

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

you need an extra space here. I'd also recommend users using approximate distinct.

@SparkQA
Copy link

SparkQA commented Dec 15, 2016

Test build #70183 has started for PR 16289 at commit 9cc8d2b.

@tdas
Copy link
Contributor Author

tdas commented Dec 15, 2016

jenkins test this please

@SparkQA
Copy link

SparkQA commented Dec 15, 2016

Test build #70184 has finished for PR 16289 at commit 9cc8d2b.

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

@SparkQA
Copy link

SparkQA commented Dec 15, 2016

Test build #3498 has finished for PR 16289 at commit 9cc8d2b.

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

@marmbrus
Copy link
Contributor

LGTM

@tdas
Copy link
Contributor Author

tdas commented Dec 15, 2016

Merging to 2.1 and master

asfgit pushed a commit that referenced this pull request Dec 15, 2016
## What changes were proposed in this pull request?

Check whether Aggregation operators on a streaming subplan have aggregate expressions with isDistinct = true.

## How was this patch tested?

Added unit test

Author: Tathagata Das <[email protected]>

Closes #16289 from tdas/SPARK-18870.

(cherry picked from commit 4f7292c)
Signed-off-by: Tathagata Das <[email protected]>
@asfgit asfgit closed this in 4f7292c Dec 15, 2016
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## What changes were proposed in this pull request?

Check whether Aggregation operators on a streaming subplan have aggregate expressions with isDistinct = true.

## How was this patch tested?

Added unit test

Author: Tathagata Das <[email protected]>

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

4 participants