-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Conversation
spark.sql.shuffle.partitions=0 should throw exception
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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?
There was a problem hiding this 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
ok add test on the bug |
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
ok to test |
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
Outdated
Show resolved
Hide resolved
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
Outdated
Show resolved
Hide resolved
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
Outdated
Show resolved
Hide resolved
Test build #102513 has finished for PR 23835 at commit
|
move test on joinsuite ,
when spark.sql.shuffle.partitions=0 error test Recovery format
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 How was this patch testedrunring JoinSuite. test("[SPARK-24783][SQL]spark.sql.shuffle.partitions=0 should throw exception ") |
Test build #102527 has finished for PR 23835 at commit
|
unindent the body by one unit
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 |
Test build #102568 has finished for PR 23835 at commit
|
mov test to sqlconfsuite
Test build #102569 has finished for PR 23835 at commit
|
I will read it carefully |
code Scalastyle
Test build #102574 has finished for PR 23835 at commit
|
sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise.
Ping @WindCanDie |
ping, again @WindCanDie |
|
Have you checked @HyukjinKwon 's comments? |
There was a problem hiding this 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
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
test title to be consisten
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
Outdated
Show resolved
Hide resolved
Test build #102896 has finished for PR 23835 at commit
|
spark.sql.shuffle.partitions message
Test build #102903 has finished for PR 23835 at commit
|
@@ -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") |
There was a problem hiding this comment.
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.
Ping @WindCanDie |
No follow up; I'm going to finish this at #24008 |
## 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>
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&%3BfocusedCommentId=16771085#comment-16771085