Skip to content

[DBMON-6301] Adding support for query errors in ClickHouse#23041

Draft
sangeetashivaji wants to merge 3 commits intomasterfrom
sangeeta.shivajirao/query-error-support
Draft

[DBMON-6301] Adding support for query errors in ClickHouse#23041
sangeetashivaji wants to merge 3 commits intomasterfrom
sangeeta.shivajirao/query-error-support

Conversation

@sangeetashivaji
Copy link
Copy Markdown
Contributor

@sangeetashivaji sangeetashivaji commented Mar 24, 2026

What does this PR do?

In this PR, we want to support Query errors for all the queries that failed with exception or errors and did not complete. Exceptions include ExceptionBeforeStart, ExceptionWhileProcessing from the system.query_log table

Motivation

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b14208aed8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

'database_instance': self._check.database_identifier,
'ddagentversion': datadog_agent.get_version(),
'ddsource': 'clickhouse',
'dbm_type': 'query_errors',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use canonical dbm_type for query error payloads

Set dbm_type to the canonical singular value query_error; using query_errors here makes ClickHouse error batches inconsistent with the DBM activity taxonomy used elsewhere in this repo (for example SQL Server emits/consumes query_error), so downstream processors that route or filter by dbm_type will miss these events and the new feature will appear not to work.

Useful? React with 👍 / 👎.

@sangeetashivaji sangeetashivaji changed the title Sangeeta.shivajirao/query error support [DBMON-6301] Adding support for query errors in ClickHouse Mar 24, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

❌ Patch coverage is 66.33663% with 68 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.80%. Comparing base (851c8bd) to head (2ea2d38).
⚠️ Report is 23 commits behind head on master.

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sangeetashivaji sangeetashivaji marked this pull request as draft March 26, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant