-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: support views that depend on virtual views
When creating a view, we report a plan dependency on virtual views which causes a failure. This commit fixes the logic to avoid reporting a dependency in this case (just like we don't report dependencies on virtual tables). Fixes #38440. Release note (bug fix): crdb_internal.ranges can now be used inside views. Note that such views can become invalid in future releases if `crdb_internal.ranges` changes.
- Loading branch information
1 parent
dbb4484
commit 39253e4
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters