GitHub user HyukjinKwon opened a pull request:

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

    [SPARK-16675][SQL] Avoid per-record type dispatch in JDBC when writing

    ## What changes were proposed in this pull request?
    
    Currently, `JdbcUtils.savePartition` is doing type-based dispatch for each 
row to write appropriate values.
    
    So, appropriate setters for `PreparedStatement` can be created first 
according to the schema, and then apply them to each row. This approach is 
similar with `CatalystWriteSupport`.
    
    This PR simply make the setters to avoid this.
    
    ## How was this patch tested?
    
    Existing tests should cover this.


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

    $ git pull https://github.com/HyukjinKwon/spark SPARK-16675

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

    https://github.com/apache/spark/pull/14323.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 #14323
    
----
commit 4284d4621104c3badcb743d908e48f283130b186
Author: hyukjinkwon <[email protected]>
Date:   2016-07-23T02:59:25Z

    [SPARK-16675][SQL] Avoid per-record type dispatch in JDBC when writing

commit 8cac7dec9b1b999d3c5aa8ecf2086c40078ea4d9
Author: hyukjinkwon <[email protected]>
Date:   2016-07-23T03:01:16Z

    Fix comment

----


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