terraform-provider-databricks
terraform-provider-databricks copied to clipboard
Remove empty lines to avoid triggering unchanged diff detection
Changes
Remove empty lines to avoid triggering unchanged diff detection. Related to this issue. https://github.com/databricks/terraform-provider-databricks/issues/3019
TrimSpace solve the issue but if there are empty new lines inside the SQL each time terraform detect the change. So remove empty lines when checking terraform state diff detection.
Sample
SELECT
column_a,
column_b
FROM table
Evidence
Tests
- [x]
make testrun locally - [ ] relevant change in
docs/folder - [ ] covered with integration tests in
internal/acceptance - [x] relevant acceptance tests are passing
- [x] using Go SDK