Skip to content
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] Tables with struct subcolumns which have dot in their name are redeployed on databricks_sql_table resource #3866 #4001

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

p-venclovas
Copy link

Changes

Backticks are removed from the column type in order for struct subfield names to be compatible with the subfield names deployed. These subfields names are part of the column type. Example struct<`x.z`:string> == struct<x.z:string>

Tests

  • make test run locally
  • relevant acceptance tests are passing
  • using Go SDK

tested using internal integration tests where tables were created and terraform plans were reviewed to have no changes.

Copy link
Contributor

@mgyucht mgyucht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for raising this PR. The code changes look fine, but we should definitely add a test to ensure this works as expected. You mentioned running internal integration tests. Can you add one in internal/acceptance/sql_table_test.go? The integration tests are not very straightforward to run for external contributors now, but if you can at least add one, that would be terrific, and I can help make sure it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants