-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add connection_parameters for databricks-sql-connector connection parameters #135
Conversation
- Add `connection_parameters` for databricks-sql-connector connection parameters ([#135](https://github.com/databricks/dbt-databricks/pull/135)) | ||
- This can be used to customize the connection by setting the additional parameters. | ||
- The full parameters are listed at [Databricks SQL Connector for Python](https://docs.databricks.com/dev-tools/python-sql-connector.html#connect-method). | ||
- Currently, the following parameters are reserved for `dbt-databricks`. Please use the normal credential settings instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the documentation, it seems that the only parameter users can set is http_headers
? I do see a list of internal arguments that can be set as well https://github.com/databricks/databricks-sql-python/blob/161b94e9c7832fa8393cdff7bc9eac14f6ba840e/src/databricks/sql/client.py#L50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, actually the purpose here includes to provide the way to set them, but I'm not sure we should mention the internal parameters here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea we don't need to mention the internal ones. Just realized the only one that can be set is http_headers (maybe there will be more in the future).
Thanks! merging. |
…ameters (#135) ### Description Adds `connection_parameters` as part of credential for `databricks-sql-connector` connection parameters. This can be used to customize the connection by setting additional parameters. The full parameters are listed at [Databricks SQL Connector for Python](https://docs.databricks.com/dev-tools/python-sql-connector.html#connect-method). Currently, the following parameters are reserved for `dbt-databricks`. - server_hostname - http_path - access_token - session_configuration - catalog - schema
…ameters (databricks#135) ### Description Adds `connection_parameters` as part of credential for `databricks-sql-connector` connection parameters. This can be used to customize the connection by setting additional parameters. The full parameters are listed at [Databricks SQL Connector for Python](https://docs.databricks.com/dev-tools/python-sql-connector.html#connect-method). Currently, the following parameters are reserved for `dbt-databricks`. - server_hostname - http_path - access_token - session_configuration - catalog - schema
Description
Adds
connection_parameters
as part of credential fordatabricks-sql-connector
connection parameters.This can be used to customize the connection by setting additional parameters.
The full parameters are listed at Databricks SQL Connector for Python.
Currently, the following parameters are reserved for
dbt-databricks
.