Skip to content

sql/resolver: AvoidLeased flag does not have any effect #108714

@fqazi

Description

@fqazi

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

Metadata

Metadata

Assignees

Labels

C-bugCode 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)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions