You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/07/15 00:30:20 UTC
[jira] [Commented] (SPARK-16559) Got java.lang.ArithmeticException
when Num of Buckets is Set to Zero
[ https://issues.apache.org/jira/browse/SPARK-16559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378664#comment-15378664 ]
Apache Spark commented on SPARK-16559:
--------------------------------------
User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/14210
> Got java.lang.ArithmeticException when Num of Buckets is Set to Zero
> --------------------------------------------------------------------
>
> Key: SPARK-16559
> URL: https://issues.apache.org/jira/browse/SPARK-16559
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Xiao Li
> Priority: Minor
>
> Got a run-time java.lang.ArithmeticException when num of buckets is set to zero.
> For example,
> {noformat}
> CREATE TABLE t USING PARQUET
> OPTIONS (PATH '${path.toString}')
> CLUSTERED BY (a) SORTED BY (b) INTO 0 BUCKETS
> AS SELECT 1 AS a, 2 AS b
> {noformat}
> The exception we got is
> {noformat}
> ERROR org.apache.spark.executor.Executor: Exception in task 0.0 in stage 1.0 (TID 2)
> java.lang.ArithmeticException: / by zero
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org