You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by sureshthalamati <gi...@git.apache.org> on 2017/03/28 18:25:37 UTC

[GitHub] spark pull request #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle nu...

GitHub user sureshthalamati opened a pull request:

    https://github.com/apache/spark/pull/17460

    [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null value in array type column for postgres.

    ## What changes were proposed in this pull request?
    JDBC read is failing with NPE due to missing null value check for array data type if the source table has null values in the array type column. For null values Resultset.getArray() returns null.
    This PR adds null safe check to the Resultset.getArray() value before invoking method on the Array object
    
    ## How was this patch tested?
    Updated the PostgresIntegration test suite to test null values. Ran docker integration tests on my laptop.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sureshthalamati/spark jdbc_array_null_fix_spark_2.1-SPARK-14536

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/17460.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 #17460
    
----
commit 3cf6832c03230ee6577eec668da68494b06289fa
Author: sureshthalamati <su...@gmail.com>
Date:   2017-03-28T18:14:18Z

    fix to jdbc read to handle null values in array data type column

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null valu...

Posted by sureshthalamati <gi...@git.apache.org>.
Github user sureshthalamati commented on the issue:

    https://github.com/apache/spark/pull/17460
  
    Thank you @gatorsmile 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null valu...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/17460
  
    @sureshthalamati Could you please close this PR, since it has been merged?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null valu...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/17460
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null valu...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/17460
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75324/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null valu...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17460
  
    **[Test build #75324 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/75324/testReport)** for PR 17460 at commit [`3cf6832`](https://github.com/apache/spark/commit/3cf6832c03230ee6577eec668da68494b06289fa).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle nu...

Posted by sureshthalamati <gi...@git.apache.org>.
Github user sureshthalamati closed the pull request at:

    https://github.com/apache/spark/pull/17460


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null valu...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17460
  
    **[Test build #75324 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/75324/testReport)** for PR 17460 at commit [`3cf6832`](https://github.com/apache/spark/commit/3cf6832c03230ee6577eec668da68494b06289fa).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17460: [SPARK-14536][SQL][BACKPORT-2.1] fix to handle null valu...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/17460
  
    Thanks! Merging to 2.1


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org