-
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: separate the execution flags from the key in crdb_internal.node_…
…statement_statistics (#15456) Prior to this patch, the flags and keys were printed out in the same column of "node_statement_statistics" (the `key` column). This made it (slightly) more difficult to report statistics: since reporting uses the anonymized column, one would have needed to extract the flags from the key, and prepend that to the anonymized column. Instead, this patch separates the flags from a separate column, which can be selected together with the anonymized column to produce a reporting entry. Prior to this patch, the flags (e.g. error, distsql) were embedded in the collection key, causing the scrubbing (anonymization) function to fail entirely for keys with non-empty flags. This patch ensures that the scrubbing occurs on the key with the flags omitted. The statistics logic tests are sensitive to flags and were thus failing depending on whether distsql was on auto mode. This patch fixes the distsql mode for the part of the test that checks key generation.
- Loading branch information
Showing
4 changed files
with
49 additions
and
8 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