GitHub user sureshthalamati opened a pull request:
https://github.com/apache/spark/pull/11063
[SPARK-13167][SQL] Include rows with null values for partition column
when reading from JDBC datasources.
Rows with null values in partition column are not included in the results
because the partition predicate
does not specify is null predicate. This fix adds is null predicate to one
of the the partition clause
if partition column us nullable.
example:
JDBCPartition(THEID < 1,0),JDBCPartition(THEID >= 1 AND THEID < 2,1),
JDBCPartition((THEID >= 2,2) or (THEID is null)), 2)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sureshthalamati/spark
nullable_jdbc_part_col_spark-13167
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11063.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11063
----
commit f4358bb618bb43bbff57fdaae711f61f20363f15
Author: sureshthalamati <[email protected]>
Date: 2016-02-03T22:12:27Z
Adding is null predicate to the partition where clause to include null
values for jdbc data source
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]