GitHub user tmyklebu opened a pull request:
https://github.com/apache/spark/pull/4261
A JDBC driver for Spark SQL.
This pull request contains a Spark SQL data source that can pull data from,
and can put data into, a JDBC database.
I have tested both read and write support with H2, MySQL, and Postgres. It
would surprise me if both read and write support worked flawlessly
out-of-the-box for any other database; different databases have different names
for different JDBC data types and different meanings for SQL types with the
same name. However, this code is designed (see `DriverQuirks.scala`) to make
it *relatively* painless to add support for another database by augmenting the
type mapping contained in this PR.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tmyklebu/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4261.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 #4261
----
commit 176bb9841718eed25a2cfc354299276ccca0e5e7
Author: Tor Myklebust <[email protected]>
Date: 2015-01-29T03:29:10Z
Add test deps for JDBC support.
commit a09eeac34c6e3632895ac5a7ef1664804cb832b7
Author: Tor Myklebust <[email protected]>
Date: 2015-01-29T03:29:53Z
JDBC data source for Spark SQL.
----
---
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]