GitHub user lepfhty opened a pull request:

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

    [SPARK-5753] add JDBCRDD support for postgres types: uuid, hstore and arrays

    PostgresQuirks:
    * added uuid as StringType
    * added hstore as MapType[StringType, StringType]
    * added ArrayType
    
    JDBCRDD needed conversion functions (nonspecific to postgres) for ArrayType 
and MapType.
    * ArrayConversion uses the `ResultSet#getArray(int).getArray()` method, so 
it should generally work.
    * MapConversion assumes that ResultSet#getObject(int) returns a 
`java.util.Map<String,String>`. Maybe this is too strong an assumption?
    
    Not sure how to run/write tests. Would appreciate pointers here.
    
    Thanks!

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

    $ git pull https://github.com/lepfhty/spark master

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

    https://github.com/apache/spark/pull/4549.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 #4549
    
----
commit 670573d206c094eb3c551abd61c0871527439aba
Author: Ricky Nguyen <[email protected]>
Date:   2015-02-12T02:32:20Z

    [SPARK-5753] add JDBCRDD support for postgres types: uuid, hstore and arrays

----


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

Reply via email to