Skip to content

Commit

Permalink
Merge pull request #4 from trocco-io/add-jdbc-options-parameter
Browse files Browse the repository at this point in the history
add jdbc extra options parameter
  • Loading branch information
NamedPython authored Aug 5, 2024
2 parents 05b847a + 68cf40b commit 6d4cfd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Databricks input plugin for Embulk loads records from Databricks.
## Configuration

- **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)
- **options**: extra JDBC properties (hash, default: {})
- **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)
- **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)
- **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)
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/embulk/input/DatabricksInputPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ protected JdbcInputConnection newConnection(PluginTask task) throws SQLException
if (t.getSchemaName().isPresent()) {
props.put("ConnSchema", t.getSchemaName().get());
}
props.putAll(t.getOptions());

logConnectionProperties(url, props);
Connection c = DriverManager.getConnection(url, props);
return new DatabricksInputConnection(
Expand Down

0 comments on commit 6d4cfd1

Please sign in to comment.