You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/06/21 04:49:58 UTC

[jira] [Resolved] (SPARK-16056) java.lang.ArithmeticException when numPartitions is zero in JDBC source

     [ https://issues.apache.org/jira/browse/SPARK-16056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reynold Xin resolved SPARK-16056.
---------------------------------
       Resolution: Fixed
         Assignee: Xiao Li
    Fix Version/s: 2.0.0

> java.lang.ArithmeticException when numPartitions is zero in JDBC source
> -----------------------------------------------------------------------
>
>                 Key: SPARK-16056
>                 URL: https://issues.apache.org/jira/browse/SPARK-16056
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> {noformat}
> spark.read.jdbc(
>   url = urlWithUserAndPass,
>   table = "TEST.seq",
>   columnName = "id",
>   lowerBound = 0,
>   upperBound = 4,
>   numPartitions = 0,
>   connectionProperties = new Properties
> )
> {noformat}
> We get an exception:
>   java.lang.ArithmeticException: / by zero



--
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