-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sentry: (0) table.go:879: virtual descriptors cannot be stored, found: %v | *sqlbase.MutableTableDescriptor (see stack traces in additional data) #38440
Comments
This might be me. Is this expected?
This happens when we attempt to create a view for
|
@RaduBerinde I haven't looked at this thoroughly but is this limitation liftable by moving view creation into opt by any chance? |
Ha, it just so happens I've been working on that (#39169) and I hit a similar error during development. It was because I was reporting a dependency on a virtual table. This situation is similar, except that we have a virtual view. I will work on fixing this too as part of that PR. |
@imjching this is the definition of
As a workaround, you can do:
|
Thanks for taking this on! |
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 cockroachdb#38440. Release note (bug fix): crdb_internal.ranges_no_leases can now be used inside 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 cockroachdb#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.
39195: sql: support views that depend on virtual views r=RaduBerinde a=RaduBerinde 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. Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
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 cockroachdb#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.
This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.
Sentry link: https://sentry.io/organizations/cockroach-labs/issues/1087088546/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/table.go
Lines 878 to 880 in 25dd36f
cockroach/pkg/sql/table.go
Lines 865 to 867 in 25dd36f
cockroach/pkg/sql/table.go
Lines 839 to 841 in 25dd36f
cockroach/pkg/sql/create_view.go
Lines 169 to 171 in 25dd36f
cockroach/pkg/sql/plan.go
Lines 495 to 497 in 25dd36f
cockroach/pkg/sql/walk.go
Lines 144 to 146 in 25dd36f
cockroach/pkg/sql/walk.go
Lines 615 to 617 in 25dd36f
cockroach/pkg/sql/walk.go
Lines 111 to 113 in 25dd36f
cockroach/pkg/sql/walk.go
Lines 75 to 77 in 25dd36f
cockroach/pkg/sql/plan.go
Lines 498 to 500 in 25dd36f
cockroach/pkg/sql/plan_node_to_row_source.go
Lines 123 to 125 in 25dd36f
cockroach/pkg/sql/distsqlrun/processors.go
Lines 799 to 801 in 25dd36f
cockroach/pkg/sql/distsqlrun/flow.go
Lines 625 to 627 in 25dd36f
cockroach/pkg/sql/distsql_running.go
Lines 251 to 253 in 25dd36f
cockroach/pkg/sql/distsql_running.go
Lines 838 to 840 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 1111 to 1113 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 947 to 949 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 455 to 457 in 25dd36f
cockroach/pkg/sql/conn_executor_exec.go
Lines 101 to 103 in 25dd36f
cockroach/pkg/sql/conn_executor.go
Lines 1181 to 1183 in 25dd36f
cockroach/pkg/sql/conn_executor.go
Lines 432 to 434 in 25dd36f
cockroach/pkg/sql/pgwire/conn.go
Lines 336 to 338 in 25dd36f
v19.1.0
go1.11.6
The text was updated successfully, but these errors were encountered: