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

Sean Owen updated SPARK-16056:
------------------------------
    Priority: Minor  (was: Critical)

Surely this is just an args checking issue?

> 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
>            Priority: Minor
>
> {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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to