-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: improve inner plan leaf transaction tracking
This PR changes planner's `innerPlansMustUseLeafTxn` from being treated as a boolean to a counter instead. As a result, the contract with `getFinishedSetupFn` has changed so that the returned `finishedSetupFn` and `cleanup` functions should only be called once. This change cleans up how we handle leaf transactions when running a plan inside a plan, e.g., executing UDFs. Epic: none Informs: #111097 Release note: None
- Loading branch information
1 parent
ab5fb87
commit 15a91e9
Showing
4 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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