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-25927][SQL] Fix number of partitions returned by outputPartitioning #22929

Closed
wants to merge 7 commits into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Nov 2, 2018

What changes were proposed in this pull request?

In the PR, I propose to make the outputPartitioning() method abstract in SparkPlan and implement it in child nodes to return actual number of partitions. Currently the method returns 0 partitions by default which is wrong in most cases.

How was this patch tested?

It was tested by SqlQueryTestSuite.

@MaxGekk
Copy link
Member Author

MaxGekk commented Nov 2, 2018

ping @hvanhovell

@SparkQA
Copy link

SparkQA commented Nov 2, 2018

Test build #98392 has finished for PR 22929 at commit 4484b24.

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

@SparkQA
Copy link

SparkQA commented Nov 2, 2018

Test build #98393 has finished for PR 22929 at commit ec5fd9b.

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

@SparkQA
Copy link

SparkQA commented Nov 2, 2018

Test build #98400 has finished for PR 22929 at commit e9f448f.

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

# Conflicts:
#	sql/core/src/main/scala/org/apache/spark/sql/execution/command/commands.scala
#	sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/WriteToDataSourceV2Exec.scala
#	sql/core/src/main/scala/org/apache/spark/sql/execution/python/EvalPythonExec.scala
#	sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/continuous/WriteToContinuousDataSourceExec.scala
@SparkQA
Copy link

SparkQA commented Nov 10, 2018

Test build #98677 has finished for PR 22929 at commit fc765f0.

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

@MaxGekk MaxGekk closed this Nov 10, 2018
@MaxGekk MaxGekk deleted the output-partitioning branch August 17, 2019 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants