-
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.
95136: sql: support redaction of EXPLAIN (PLAN) r=RaduBerinde,yuzefovich a=michae2 **sql: support redaction of EXPLAIN (PLAN)** Support redaction of `EXPLAIN (PLAN)` and add plan.txt back to redacted statement diagnostics bundles. Part of: #68570 Epic: CRDB-19756 Release note (sql change): Add support for the `REDACT` flag to the following variants of `EXPLAIN`: - `EXPLAIN` - `EXPLAIN (PLAN)` - `EXPLAIN (VEC)` - `EXPLAIN ANALYZE` - `EXPLAIN ANALYZE (PLAN)` These explain statements (along with `EXPLAIN ANALYZE (DEBUG)`, which already supported `REDACT`) will have constants, literal values, parameter values, and any other user data redacted in output. **explain: rename RedactFlags to DeflakeFlags** Now that we have a new `RedactValues` field in `explain.Flags` there is some confusion with the existing `RedactFlags`. Rename these to `DeflakeFlags`. Part of: #68570 Epic: CRDB-19756 Release note: None **sql: add randomized test for EXPLAIN (REDACT)** Add a randomized test which calls every `EXPLAIN (REDACT)` variant on a few random statements, and checks that the output does not contain an injected string representing PII. As more `EXPLAIN (REDACT)` variants are added the test will naturally include them by virtue of trying every combination of explain mode and flag. Part of: #68570 Epic: CRDB-19756 Release note: None Co-authored-by: Michael Erickson <[email protected]>
- Loading branch information
Showing
21 changed files
with
283 additions
and
85 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
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
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
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
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
Oops, something went wrong.