-
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/parser: reveal broken statement telemetry
The SQL layer generates statement telemetry in two phases: - first the literal constants are removed statements to form app stat keys - then the app stat keys are re-parsed into an AST - the new AST is then re-pretty-printed using anonymization The problem here is that there is no guarantee that the result of stripping literals forms a valid SQL syntax. Moreover, it's possible that the result of stripping the literals generates syntax that's different from the original SQL semantically. This patch exposes this difference. All the diffs in this commit should be interpreted as bugs that cause invalid data in the telemetry. Release note: None
- Loading branch information
Showing
20 changed files
with
215 additions
and
1 deletion.
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
Oops, something went wrong.