sql/storageparam: break builtins dep on tabledesc #82501
Merged
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.
The TableStorageParamObserver meant that paramparse and transitively builtins
depended on tabledesc. This was unfortunate because seqexpr is depended
on by builtins and we want to use seqexpr in tabledesc, so we have to make
sure that builtins does not depend on tabledesc.
This commit achieves that goal by splitting out paramparse into three new
packages:
to drive forward the setting and resetting of params, and has some shared
functionality.
for the
descpb.IndexDescriptor
.for the
*tabledesc.Mutable
.This allows the
builtins
package to use theindexstorageparam
packagecleanly without depending on
*tabledesc.Mutable
. It also recognizes thatlots of utility methods in
paramparse
aren't aboutstorageparam
s.Release note: None