-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql/resolver: AvoidLeased flag does not have any effect #108714
Copy link
Copy link
Closed
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Description
Presently, an AvoidLeased flag is meant to indicate that leased descriptors should not be used. This flag, unfortunately, is never used by the resolver when looking up objects, and it could lead to bugs in the future. To avoid problems and mitigate any risks, we will refactor the code to replace this flag instead with an assertion, which guarantees to the caller that the look-up is properly configured to avoid leased descriptors in a context.
Jira issue: CRDB-30608
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)