An AST visitor that transforms an AST that contains temporary GlobalId references to one where
every temporary GlobalId has been replaced by its final allocated id, as dictated by the
This is useful when trying to create multiple objects in a single DDL transaction and the
objects that are about to be don’t have allocated GlobalIds yet. What we can do in that case is
for the planner to assign temporary
GlobalId::Transient identifiers to all the objects that
it wants to create and use those for any interelationships.
Then, when the coordinator receives the list of plans to be executed it can batch allocate
GlobalIds and use this TransientResolver to walk through all the ASTs and make them
refer to the final GlobalIds of the objects.
allocation: &'a BTreeMap<GlobalId, GlobalId>
A map from transient
GlobalIds to their final non-transient
status: Result<(), PlanError>
Auto Trait Implementations§
Returns the argument unchanged.