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-24783][SQL]spark.sql.shuffle.partitions=0 should throw exception #23835

Closed
wants to merge 9 commits into from

Conversation

WindCanDie
Copy link
Contributor

@WindCanDie WindCanDie commented Feb 19, 2019

this PR add checkValue this spark.sql.shuffle.partitions>0 and sparkSqlConf test

How was this patch tested

runring test("[SPARK-24783][SQL]spark.sql.shuffle.partitions=0 should throw exception ")

When spark.sql.shuffle.partitions<=0 run test throw IllegalArgumentException and message"e value of sql.shuffle.partitions must be greater than 0"
this catch and assert exception message
spark.sql.shuffle.partitions=0 should throw exception

JIRA link

https://issues.apache.org/jira/browse/SPARK-24783?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&amp%3BfocusedCommentId=16771085#comment-16771085

spark.sql.shuffle.partitions=0 should throw exception
Copy link
Member

@gatorsmile gatorsmile left a comment

Choose a reason for hiding this comment

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

@WindCanDie Could you add a test case for reproducing the bug that is reported in the JIRA?

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Agree a little test would be good

when spark.sql.shuffle.partitions=0  error test
@WindCanDie
Copy link
Contributor Author

ok add test on the bug

@gatorsmile
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Feb 19, 2019

Test build #102513 has finished for PR 23835 at commit 0584115.

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

langjx added 2 commits February 20, 2019 10:09
move test on joinsuite ,
when spark.sql.shuffle.partitions=0  error test
Recovery format
@HeartSaVioR
Copy link
Contributor

Please fill the template of PR instead of rewriting it: the title and content of PR will become commit message, so Spark community requires PRs to have formulated format.

https://github.com/apache/spark/blob/master/.github/PULL_REQUEST_TEMPLATE

@WindCanDie
Copy link
Contributor Author

Please fill the template of PR instead of rewriting it: the title and content of PR will become commit message, so Spark community requires PRs to have formulated format.

https://github.com/apache/spark/blob/master/.github/PULL_REQUEST_TEMPLATE

ok
##Frist this PR add spark.sql.shuffle.partitions>0 checkValue and test

How was this patch tested

runring JoinSuite. test("[SPARK-24783][SQL]spark.sql.shuffle.partitions=0 should throw exception ")
on park.sql.shuffle.partitions<=0 run test throw IllegalArgumentException and message"e value of sql.shuffle.partitions must be greater than 0"
this catch and assert exception message

@SparkQA
Copy link

SparkQA commented Feb 20, 2019

Test build #102527 has finished for PR 23835 at commit d2c535b.

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

@HyukjinKwon
Copy link
Member

re: #23835 (comment), please edit PR description instead of leaving it as a comment here. Take a look at https://github.com/databricks/scala-style-guide for style and https://spark.apache.org/contributing.html as well

@SparkQA
Copy link

SparkQA commented Feb 21, 2019

Test build #102568 has finished for PR 23835 at commit 8597480.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Feb 21, 2019

Test build #102569 has finished for PR 23835 at commit 18437e3.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@WindCanDie
Copy link
Contributor Author

re: #23835 (comment), please edit PR description instead of leaving it as a comment here. Take a look at https://github.com/databricks/scala-style-guide for style and https://spark.apache.org/contributing.html as well

I will read it carefully

@SparkQA
Copy link

SparkQA commented Feb 21, 2019

Test build #102574 has finished for PR 23835 at commit 6e2a773.

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

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

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

Looks good otherwise.

@srowen
Copy link
Member

srowen commented Feb 25, 2019

Ping @WindCanDie

@maropu
Copy link
Member

maropu commented Mar 1, 2019

ping, again @WindCanDie

@WindCanDie
Copy link
Contributor Author

WindCanDie commented Mar 1, 2019

ping, again @WindCanDie
I'm here
I don't quite understand what problems can you tell me in detail?

@maropu
Copy link
Member

maropu commented Mar 1, 2019

Have you checked @HyukjinKwon 's comments?

Copy link
Contributor Author

@WindCanDie WindCanDie left a comment

Choose a reason for hiding this comment

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

Have you checked @HyukjinKwon 's comments?
this ?
nit: spark.sql.shuffle.partitions?
nit this is what abbreviation I did not understand

@SparkQA
Copy link

SparkQA commented Mar 1, 2019

Test build #102896 has finished for PR 23835 at commit 2b6ca75.

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

spark.sql.shuffle.partitions message
@SparkQA
Copy link

SparkQA commented Mar 1, 2019

Test build #102903 has finished for PR 23835 at commit 1a7b15e.

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

@@ -267,6 +267,7 @@ object SQLConf {
"Note: For structured streaming, this configuration cannot be changed between query " +
"restarts from the same checkpoint location.")
.intConf
.checkValue(_ > 0, "the value of spark.sql.shuffle.partitions must be greater than 0")
Copy link
Member

Choose a reason for hiding this comment

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

the -> The

Please read the comments closely.

@srowen
Copy link
Member

srowen commented Mar 4, 2019

Ping @WindCanDie

@srowen
Copy link
Member

srowen commented Mar 7, 2019

No follow up; I'm going to finish this at #24008

@srowen srowen closed this Mar 7, 2019
HyukjinKwon pushed a commit that referenced this pull request Mar 8, 2019
## What changes were proposed in this pull request?

Throw an exception if spark.sql.shuffle.partitions=0
This takes over #23835

## How was this patch tested?

Existing tests.

Closes #24008 from srowen/SPARK-24783.2.

Lead-authored-by: Sean Owen <sean.owen@databricks.com>
Co-authored-by: WindCanDie <491237260@qq.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants