aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorhyukjinkwon <gurwls223@gmail.com>2017-02-01 09:43:35 -0800
committergatorsmile <gatorsmile@gmail.com>2017-02-01 09:43:35 -0800
commit5ed397baa758c29c54a853d3f8fee0ad44e97c14 (patch)
treeeb0fdc093d1d41cd33c74bb7cfe7e6516ff3d911 /core
parent04ee8cf633e17b6bf95225a8dd77bf2e06980eb3 (diff)
downloadspark-5ed397baa758c29c54a853d3f8fee0ad44e97c14.tar.gz
spark-5ed397baa758c29c54a853d3f8fee0ad44e97c14.tar.bz2
spark-5ed397baa758c29c54a853d3f8fee0ad44e97c14.zip
[SPARK-19296][SQL] Deduplicate url and table in JdbcUtils
## What changes were proposed in this pull request? This PR deduplicates arguments, `url` and `table` in `JdbcUtils` with `JDBCOptions`. It avoids to use duplicated arguments, for example, as below: from ```scala val jdbcOptions = new JDBCOptions(url, table, map) JdbcUtils.saveTable(ds, url, table, jdbcOptions) ``` to ```scala val jdbcOptions = new JDBCOptions(url, table, map) JdbcUtils.saveTable(ds, jdbcOptions) ``` ## How was this patch tested? Running unit test in `JdbcSuite`/`JDBCWriteSuite` Building with Scala 2.10 as below: ``` ./dev/change-scala-version.sh 2.10 ./build/mvn -Pyarn -Phadoop-2.4 -Dscala-2.10 -DskipTests clean package ``` Author: hyukjinkwon <gurwls223@gmail.com> Closes #16753 from HyukjinKwon/SPARK-19296.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions