Skip to content

Support unsetting transaction-bound SchemaTemplate in a Transaction #3496

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

Merged

Conversation

g31pranjal
Copy link
Member

@g31pranjal g31pranjal commented Jul 22, 2025

This PR add support for "unsetting" a transaction-bound SchemaTemplate from the ongoing transaction. This is essential if we want to revert the execution to using the SchemaTemplate from the catalog thereby undoing all the temporary function definitions at once. Note that this could be more efficient than the DROP TEMPORARY FUNCTION ... DDL introduced in the previous PR and have the wider scope that is beyond TEMPORARY FUNCTIONS definitions.

Also added a test for testing it in the context of TransactionBoundDatabase.

@g31pranjal g31pranjal added enhancement New feature or request relational issues related to relational FDB labels Jul 22, 2025
@g31pranjal g31pranjal force-pushed the unset_txn_bound_schema_template branch from cbc8517 to 300da3a Compare July 22, 2025 11:35
@g31pranjal g31pranjal changed the title unset txn-bound schema template Support unsetting transaction-bound SchemaTemplate in a Transaction Jul 22, 2025
@g31pranjal g31pranjal requested a review from hatyo July 22, 2025 12:57
Copy link
Contributor

@hatyo hatyo left a comment

Choose a reason for hiding this comment

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

LGTM.

@g31pranjal g31pranjal merged commit a4a1dc9 into FoundationDB:main Jul 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request relational issues related to relational FDB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants