-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Feature] Add databricks_query
resource instead of databricks_sql_query
#4103
base: main
Are you sure you want to change the base?
Conversation
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.
Overall seems good to me. I'll wait to approve until databricks_alert is merged.
* `description` - (Optional, String) General description that conveys additional information about this query such as usage notes. | ||
* `run_as_mode` - (Optional, String) Sets the "Run as" role for the object. | ||
* `tags` - (Optional, List of strings) Tags that will be added to the query. | ||
* `parameter` - (Optional, Block) Query parameter definition. Consists of following attributes (one of `*_value` is required): |
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.
Just curious: in other docs, these blocks are often documented as their own headings. Is there any need for consistency around these aspects?
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.
that's a good question - sometimes, moving to a separate block will add an unnecessary context switch. But agree, we need to unify this
e226dca
to
8e12ef7
Compare
…alert` New resource use the [new Alerts API](https://docs.databricks.com/api/workspace/alerts/create) instead of legacy one that will be deprecated. New resource has slightly different set of parameters, so it was decided to create new resource and deprecate old one. This resource uses old TF SDK to be compatible with TF exporter (until #4050 is implemented).
…query` This PR is built on top of #4051 that should be merged first. The new resource uses the new [Queries API](https://docs.databricks.com/api/workspace/queries/create) instead of the legacy one that will be deprecated. Since the new resource has a slightly different set of parameters, it was decided to create a new resource and deprecate the old one. This resource uses old TF SDK to be compatible with TF exporter (until #4050 is implemented). TODOs: - Add documentation - Need to discuss how to handle permissions - `sql_query` permissions look like working, but not sure if we should continue to use that API - Support in the exporter will be in a separate PR
1eab187
to
73f19a0
Compare
Changes
This PR is built on top of #4051 which should be merged first.
The new resource uses the new Queries API instead of the legacy one that will be deprecated. Since the new resource has a slightly different set of parameters, it was decided to create a new resource and deprecate the old one.
This resource uses old TF SDK to be compatible with TF exporter (until #4050 is implemented).
TODOs:
sql_query
permissions look like working, but not sure if we should continue to use that APITests
make test
run locallydocs/
folderinternal/acceptance