Skip to content

Group same failed queries together in keys's output#48

Merged
systay merged 2 commits into
vitessio:mainfrom
planetscale:remove-duplicated-errors
Nov 8, 2024
Merged

Group same failed queries together in keys's output#48
systay merged 2 commits into
vitessio:mainfrom
planetscale:remove-duplicated-errors

Conversation

@frouioui
Copy link
Copy Markdown
Member

@frouioui frouioui commented Nov 8, 2024

This PR groups query that failed multiple times into a single JSON element instead of repeating the same query/failure.

"failed": [
      {
        "query": "I am a failing query;",
        "lineNumbers": [
          463,
          781
        ],
        "error": "syntax error at position 2 near 'I'"
      }
    ]
## Failures
|Query|Error|Count|
|---|---|---|
|I am a failing query;|syntax error at position 2 near 'I'|2|

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
@frouioui frouioui requested a review from systay November 8, 2024 00:51
@systay systay merged commit 4ca9d3f into vitessio:main Nov 8, 2024
@frouioui frouioui deleted the remove-duplicated-errors branch November 8, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants