-
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,telemetry: report built-in function name in eval failures
Prior to this patch, if any built-in function was producing a non-pgerror error object it would be reported in telemetry as `othererror.eval.go:3573`. This patch fixes this by ensuring the function name is included and the error reported as a pg "data error", e.g. `othererror.22000.somefunction()`. In addition, this patch extends the connExecutor error handling code to always include a `pgerror.Error`'s `InternalCommand` in telemetry if set, not just when the code is "internal error" or "syntax error". Release note (sql change): CockroachDB will now include the name of the SQL built-in function in collected statistics upon evaluation errors.
- Loading branch information
Showing
4 changed files
with
58 additions
and
9 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