direct: ignore UC-managed schema property defaults#5195
Open
janniklasrose wants to merge 8 commits into
Open
Conversation
UC auto-populates system-managed property keys (e.g. `unity.catalog.managed.delta.defaults.delta.enableRowTracking`) on schema creation. Without a backend_defaults rule, the planner sees the remote map as drift, emits Update, and DoUpdate sends an empty payload which UC rejects with "UpdateSchema Nothing to update". The rule only applies when both saved and new are nil, so user-set properties still drive real drift detection. Also mirror the UC behavior in the fake testserver so the no-drift invariant is exercised locally; added acceptance/.../schemas/drift/ managed_properties covering the reproducer. Co-authored-by: Isaac
Contributor
Approval status: pending
|
The fake populated UC-managed properties on every property-less schema. The direct engine ignores them as backend defaults, but terraform treats them as drift, which broke unrelated schema acceptance tests across both engines. Gate the injection on a dedicated schema name so only the backend-default drift test opts in, and drop recreate's now-incidental property line. Co-authored-by: Isaac
janniklasrose
commented
Jun 9, 2026
| // to opt into UC's managed-property simulation. Scoping the injection to this name | ||
| // keeps unrelated schema tests free of the property, which terraform would otherwise | ||
| // report as drift on redeploy. | ||
| const schemaNameManagedDefaults = "schema_managed_defaults" |
Contributor
Author
There was a problem hiding this comment.
not great to use a magic name here, but this is similar to the backend which doesn't do this based on any API parameter either
Collaborator
|
Commit: 66711bf
22 interesting tests: 15 SKIP, 7 KNOWN
Top 28 slowest tests (at least 2 minutes):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
backend_defaultsfor two fieldsproperties['...']structdiffwhere a remote-only map change is emitted at the parent path: only skip the parent if every remote entry matches a configured child rule. Synthesize child paths withstructpath.NewBracketStringto match whatstructdiffproduces (rather thanNewStringKey, which would diverge for identifier-like keys).Why
UC auto-populates system-managed property keys out of band (e.g. setting
unity.catalog.managed.delta.defaults.delta.enableRowTracking). This causes the planner to output Update when there is nothing to doTests
This pull request and its description were written by Isaac.