diff options
author | GraceH <93113783@qq.com> | 2016-08-13 11:39:58 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-08-13 11:39:58 +0100 |
commit | 8c8acdec9365136cba13060ce36c22b28e29b59b (patch) | |
tree | 77d36550321fb0872d1c9a5ad4e4f8328a56cea4 /project/build.properties | |
parent | 7f7133bdccecaccd6dfb52f13c18c1e320d65f86 (diff) | |
download | spark-8c8acdec9365136cba13060ce36c22b28e29b59b.tar.gz spark-8c8acdec9365136cba13060ce36c22b28e29b59b.tar.bz2 spark-8c8acdec9365136cba13060ce36c22b28e29b59b.zip |
[SPARK-16968] Add additional options in jdbc when creating a new table
## What changes were proposed in this pull request?
In the PR, we just allow the user to add additional options when create a new table in JDBC writer.
The options can be table_options or partition_options.
E.g., "CREATE TABLE t (name string) ENGINE=InnoDB DEFAULT CHARSET=utf8"
Here is the usage example:
```
df.write.option("createTableOptions", "ENGINE=InnoDB DEFAULT CHARSET=utf8").jdbc(...)
```
## How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
will apply test result soon.
Author: GraceH <93113783@qq.com>
Closes #14559 from GraceH/jdbc_options.
Diffstat (limited to 'project/build.properties')
0 files changed, 0 insertions, 0 deletions