GitHub user sureshthalamati opened a pull request: https://github.com/apache/spark/pull/8393
[SPARK-10170] [SQL] Writing from data frame into db2 database using jdbc data source api fails with error for string, and boolean column types. Data frame write to DB2 database is failing because by default JDBC data source implementation is generating a table schema with DB2 unsupported data types TEXT for String, and BIT1(1) for Boolean. This patch registers DB2 JDBC Dialect that maps String, Boolean to valid DB2 data types. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sureshthalamati/spark db2_dialect_spark-10170 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/8393.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 #8393 ---- commit 0c999ce8bcdf7e1cebbdd759b1bbcbcfa80e888e Author: sureshthalamati <suresh.thalam...@gmail.com> Date: 2015-08-24T07:22:08Z Fixing data frame write error to DB2 using jdbc. Adding db2 dialect to map string, boolean to valid db2 types on write. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org