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] Handle edge case for effective_properties in databricks_sql_table #4153

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

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Oct 25, 2024

Changes

It was reported in #4098 that some of the specified options, like, multiLine, recursiveFileLookup and potentially more, aren't returned as option.multiLine, etc., but instead are expanded into full names, like, spark.sql.dataSourceOptions.multiLine.

This PR changes lookup logic a bit, and if we can't find option.something, then we're looking for all options ending with .something (only if there are no . in the name).

Resolves #4098

Tests

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

…table`

It was reported in #4098 that some of the specified options, like, `multiLine`,
`recursiveFileLookup` and potentially more, aren't returned as `option.multiLine`, etc.,
but instead are expanded into full names, like, `spark.sql.dataSourceOptions.multiLine`.

This PR changes lookup logic a bit, and if we can't find `option.something`, then we're
looking for all options ending with `.something` (only if there are no `.` in the name).

Resolves #4098
@alexott alexott requested review from a team as code owners October 25, 2024 06:50
@alexott alexott requested review from tanmay-db and removed request for a team October 25, 2024 06:50
@alexott alexott requested a review from mgyucht October 25, 2024 06:50
@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/11513337899

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.

[ISSUE] Issue with databricks_sql_table resource perpetual diff on options
2 participants