-
Notifications
You must be signed in to change notification settings - Fork 356
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 databricks_mlflow_experiment
data source
#2389
Conversation
Currently you can only fetch the mlflow_experiment data source using the name in this PR. I believe it would be nice to provide the option to fetch using the ID, as well. I have to read a bit more into this. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2389 +/- ##
==========================================
- Coverage 83.57% 83.57% -0.01%
==========================================
Files 168 169 +1
Lines 15083 15107 +24
==========================================
+ Hits 12606 12625 +19
- Misses 1736 1739 +3
- Partials 741 743 +2
|
@840 thank you for raising the PR. a couple of thoughts for the pending tasks you could look at https://github.com/databricks/terraform-provider-databricks/blob/master/clusters/data_cluster.go for example of searching both by name & id the Go SDK has For acceptance tests, you could create an mlflow experiment and try to read it in the same block, similar to https://github.com/databricks/terraform-provider-databricks/blob/master/internal/acceptance/data_job_test.go |
mlflow/data_mlflow_experiment.go
Outdated
return err | ||
} | ||
experiment := experimentResponse.Experiment | ||
data.Name = experiment.Name |
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.
if name
is provided, then you don't need to overwrite it
This data source exports the following attributes: | ||
|
||
* `artifact_location` - Location where artifacts for the experiment are stored. | ||
* `name` - Human readable name that identifies the experiment. |
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.
Need to be consistent with the name
argument reference
|
||
* `artifact_location` - Location where artifacts for the experiment are stored. | ||
* `name` - Human readable name that identifies the experiment. | ||
* `lifecycle_stage` - Current life cycle stage of the experiment: "active" or "deleted". Deleted experiments are not returned by APIs. |
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.
Get by Id will work on deleted experiments
* `lifecycle_stage` - Current life cycle stage of the experiment: "active" or "deleted". Deleted experiments are not returned by APIs. | |
* `lifecycle_stage` - Current life cycle stage of the experiment: `active` or `deleted`. Deleted experiments are not returned by APIs. |
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.
I guess it has to be changed in the Databricks documentation, as well.
Blocked by databricks/databricks-sdk-go#428 |
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.
Quick first pass. LMK when no longer WIP.
…del in the future
Will continue this week or early next week. |
databricks_mlflow_experiment
data sourcedatabricks_mlflow_experiment
data source
@mgyucht WIP tag removed, should be ready! |
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.
Thank you!
### New Features and Improvements * Add owner support to `databricks_sql_table` ([#3570](#3570)). * Add `databricks_catalog` data source ([#3573](#3573)). * Add `databricks_table` data source ([#3571](#3571)). * Add `databricks_mlflow_experiment` data source ([#2389](#2389)). ### Documentation Changes ### Exporter * Fix rare race condition with variables map ([#3568](#3568)). ### Internal Changes Dependency updates: * Bump go SDK to 0.40.1 ([#3574](#3574)), featuring improvements in tracing and debuggability of failed requests.
### New Features and Improvements * Add owner support to `databricks_sql_table` ([#3570](#3570)). * Add `databricks_catalog` data source ([#3573](#3573)). * Add `databricks_table` data source ([#3571](#3571)). * Add `databricks_mlflow_experiment` data source ([#2389](#2389)). ### Documentation Changes ### Exporter * Fix rare race condition with variables map ([#3568](#3568)). ### Internal Changes Dependency updates: * Bump go SDK to 0.40.1 ([#3574](#3574)), featuring improvements in tracing and debuggability of failed requests.
Changes
Add
databricks_mlflow_experiment
data sourceTests
Created 3 tests for this data source
make test
run locallydocs/
folderinternal/acceptance
Partially resolves #2301