terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

Remove empty lines to avoid triggering unchanged diff detection

Open case-k-git opened this issue 1 year ago • 0 comments

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 img

Tests

  • [x] make test run locally
  • [ ] relevant change in docs/ folder
  • [ ] covered with integration tests in internal/acceptance
  • [x] relevant acceptance tests are passing
  • [x] using Go SDK

case-k-git avatar Apr 22 '24 09:04 case-k-git