Skip to content

Commit 6d4cfd1

Browse files
authored
Merge pull request #4 from trocco-io/add-jdbc-options-parameter
add jdbc extra options parameter
2 parents 05b847a + 68cf40b commit 6d4cfd1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Databricks input plugin for Embulk loads records from Databricks.
1010
## Configuration
1111

1212
- **driver_path**: path to the jar file of the JDBC driver. If not set, [the bundled JDBC driver](https://docs.databricks.com/en/integrations/jdbc/index.html) will be used. (string, optional)
13+
- **options**: extra JDBC properties (hash, default: {})
1314
- **server_hostname**: The Databricks compute resource’s Server Hostname value, see [Compute settings for the Databricks JDBC Driver](https://docs.databricks.com/en/integrations/jdbc/compute.html). (string, required)
1415
- **http_path**: The Databricks compute resource’s HTTP Path value, see [Compute settings for the Databricks JDBC Driver](https://docs.databricks.com/en/integrations/jdbc/compute.html). (string, required)
1516
- **personal_access_token**: The Databaricks personal_access_token, see [Authentication settings for the Databricks JDBC Driver](https://docs.databricks.com/en/integrations/jdbc/authentication.html#authentication-pat). (string, required)

src/main/java/org/embulk/input/DatabricksInputPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ protected JdbcInputConnection newConnection(PluginTask task) throws SQLException
7474
if (t.getSchemaName().isPresent()) {
7575
props.put("ConnSchema", t.getSchemaName().get());
7676
}
77+
props.putAll(t.getOptions());
78+
7779
logConnectionProperties(url, props);
7880
Connection c = DriverManager.getConnection(url, props);
7981
return new DatabricksInputConnection(

0 commit comments

Comments
 (0)