opt: track schemas in the metadata #97278
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-queries
SQL Queries Team
Currently, the metadata only checks data sources and user-defined types when validating the query cache. We should also track the schemas that are referenced by the query (even if only indirectly), so that the cached data can be invalidated when the schema or database of a referenced object is altered or dropped. Note that this is already handled for data sources by tracking the name that was originally used to resolve the data source, but this adds complexity, and user-defined types do not handle this case at all (tracked in #96674). Tracking schemas as well as other catalog objects will simplify the implementation for data sources and UDFs (tracked in #93082 and #93321), it will also fix the caching bugs for UDTs.
Jira issue: CRDB-24605
Epic: CRDB-20535
The text was updated successfully, but these errors were encountered: