-
Notifications
You must be signed in to change notification settings - Fork 400
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
Fix bug in collectionToMaps #3581
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3581 +/- ##
==========================================
- Coverage 82.55% 82.54% -0.02%
==========================================
Files 187 187
Lines 19156 19160 +4
==========================================
+ Hits 15815 15816 +1
- Misses 2413 2414 +1
- Partials 928 930 +2
|
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.
nit: should leave a comment on this behaviour for future reference
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.
Can you add a unit test for this? Otherwise LGTM
### New Features and Improvements * Fix bug in collectionToMaps ([#3581](#3581)). * Added `databricks_enhanced_security_monitoring_workspace_setting ` resource for ESC (Enhanced Compliance and Security) settings ([#3563](#3563)). * Added `databricks_automatic_cluster_update_workspace_setting` resource ([#3444](#3444)). * Add databricks_compliance_security_profile_workspace_setting resource ([#3564](#3564)). * Make customizable error logs more readable ([#3583](#3583)). * Fix control run state failures for `databricks_job` resource ([#3585](#3585)). * Added support for popular column types for `resource_sql_table` ([#3528](#3528)). * Modify state upgrader to remove `ebs_volume_iops` set to zero ([#3601](#3601)). * Add route optimized option to model serving terraform ([#3572](#3572)). * Rename lakehouse monitor to quality monitor ([#3584](#3584)). ### Documentation Changes * Fix documentation for `databricks_storage_credential` and `databricks_external_location` data sources ([#3588](#3588)). ### Exporter * Add support for `databricks_mws_permission_assignment` resource ([#3562](#3562)). * Don't list directories in the incremental mode ([#3569](#3569)). ### Internal Changes * Add TestMwsAccServicePrincipalResourceOnAws to flaky tests ([#3580](#3580)). ### Dependency updates * Bump github.com/databricks/databricks-sdk-go from 0.40.1 to 0.41.0 ([#3604](#3604)). * Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.33.0 to 2.34.0 ([#3594](#3594)).
* Release v1.45.0 ### New Features and Improvements * Fix bug in collectionToMaps ([#3581](#3581)). * Added `databricks_enhanced_security_monitoring_workspace_setting ` resource for ESC (Enhanced Compliance and Security) settings ([#3563](#3563)). * Added `databricks_automatic_cluster_update_workspace_setting` resource ([#3444](#3444)). * Add databricks_compliance_security_profile_workspace_setting resource ([#3564](#3564)). * Make customizable error logs more readable ([#3583](#3583)). * Fix control run state failures for `databricks_job` resource ([#3585](#3585)). * Added support for popular column types for `resource_sql_table` ([#3528](#3528)). * Modify state upgrader to remove `ebs_volume_iops` set to zero ([#3601](#3601)). * Add route optimized option to model serving terraform ([#3572](#3572)). * Rename lakehouse monitor to quality monitor ([#3584](#3584)). ### Documentation Changes * Fix documentation for `databricks_storage_credential` and `databricks_external_location` data sources ([#3588](#3588)). ### Exporter * Add support for `databricks_mws_permission_assignment` resource ([#3562](#3562)). * Don't list directories in the incremental mode ([#3569](#3569)). ### Internal Changes * Add TestMwsAccServicePrincipalResourceOnAws to flaky tests ([#3580](#3580)). ### Dependency updates * Bump github.com/databricks/databricks-sdk-go from 0.40.1 to 0.41.0 ([#3604](#3604)). * Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.33.0 to 2.34.0 ([#3594](#3594)). * fixes
Changes
collectionToMaps
collectionToMap
, in the callback function we pass intoiterFields
, we are not handling the case where a list schema's Elemis a
*schema.Schema`.StructToData
intocollectionToMaps
Tests
make test
run locallydocs/
folderinternal/acceptance