You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2016/06/19 17:24:05 UTC
[jira] [Updated] (SPARK-16057) JDBC source: Wrong Partition
Generation when numPartitions is More than the number of rows between upper
and lower bounds
[ https://issues.apache.org/jira/browse/SPARK-16057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li updated SPARK-16057:
----------------------------
Priority: Critical (was: Major)
> JDBC source: Wrong Partition Generation when numPartitions is More than the number of rows between upper and lower bounds
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-16057
> URL: https://issues.apache.org/jira/browse/SPARK-16057
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Xiao Li
> Priority: Critical
>
> {noformat}
> spark.read.jdbc(
> url = urlWithUserAndPass,
> table = "TEST.seq",
> columnName = "id",
> lowerBound = 1,
> upperBound = 5,
> numPartitions = 10,
> connectionProperties = new Properties)
> {noformat}
> Generated partitions are wrong:
> {noformat}
> Partition 0: id < 1 or id is null
> Partition 1: id >= 1 AND id < 1
> Partition 2: id >= 1 AND id < 1
> Partition 3: id >= 1 AND id < 1
> Partition 4: id >= 1 AND id < 1
> Partition 5: id >= 1 AND id < 1
> Partition 6: id >= 1 AND id < 1
> Partition 7: id >= 1 AND id < 1
> Partition 8: id >= 1 AND id < 1
> Partition 9: id >= 1
> {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