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

allows to apply table level hints via make_hints #2365

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

rudolfix
Copy link
Collaborator

@rudolfix rudolfix commented Mar 2, 2025

Description

makes additional_table_hints part of TResourceHints which allows to update table-level hints dynamically

Copy link

netlify bot commented Mar 2, 2025

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 070a964
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/67c5d47b6c07c800086624af

t.pop(k, None) # type: ignore[misc]
t.pop("additional_table_hints", None) # type: ignore
t["additional_table_hints"] = additional_table_hints
else:
Copy link
Collaborator

Choose a reason for hiding this comment

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

So if additional_table_hints is set to {} then they are fully popped and if there is at least one item, then it gets merged into the existing values? is this the correct behavior?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, all hints behave like this.

sh-rp
sh-rp previously approved these changes Mar 3, 2025
@rudolfix rudolfix merged commit d6ec255 into devel Mar 3, 2025
86 of 87 checks passed
@rudolfix rudolfix deleted the feat/allows-to-apply-dynamic-table-level-hints branch March 3, 2025 18:22
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