You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unsafesql: avoid panicking during query formatting
Part of the effort to guard access to the crdb_internal and system
namespaces includes auditing override access (and denied access) to
these unsafe internals. Included in this audit is the offending query
which attempted to pry into these namespaces.
In multiple locations however, this auditing caused the system to panic,
for different reasons. In one case, an incorrect number of annotations
on the query caused a panic. Another included a plan builder which had
no associated statement.
We see the process of going from plan -> query as a difficult one, and
thus guard this attempt to audit these accesses in a blanket panic
catcher, as it's not common that this will happen, and when it does we
don't want the system to wholesale fail the query.
Fixes: #153590 Epic: CRDB-24527
Release note: none
0 commit comments