Skip to content

Add ProfileEvents for number of rows and bytes passing filter transform#76662

Merged
antaljanosbenjamin merged 10 commits intoClickHouse:masterfrom
onkar:onkar/profile-event
Mar 5, 2025
Merged

Add ProfileEvents for number of rows and bytes passing filter transform#76662
antaljanosbenjamin merged 10 commits intoClickHouse:masterfrom
onkar:onkar/profile-event

Conversation

@onkar
Copy link
Copy Markdown
Contributor

@onkar onkar commented Feb 24, 2025

This PR adds profile events to calculate the number of rows and number of bytes in filter transform of a query. It resolves #67288.

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

FilterTransformPassedRows and FilterTransformPassedBytes profile events will show the number of rows and number of bytes filtered during the query execution.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 24, 2025

CLA assistant check
All committers have signed the CLA.

@antaljanosbenjamin antaljanosbenjamin self-assigned this Feb 24, 2025
Copy link
Copy Markdown
Member

@antaljanosbenjamin antaljanosbenjamin left a comment

Choose a reason for hiding this comment

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

We also need tests for this.

@antaljanosbenjamin antaljanosbenjamin added the can be tested Allows running workflows for external contributors label Feb 24, 2025
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Feb 24, 2025

Workflow [PR], commit [af52977]

@clickhouse-gh clickhouse-gh bot added the pr-feature Pull request with new product feature label Feb 24, 2025
@onkar onkar changed the title Add ProfileEvents for number of rows and bytes passing WHERE clause Add ProfileEvents for number of rows and bytes passing filter transform Feb 25, 2025
@onkar
Copy link
Copy Markdown
Contributor Author

onkar commented Feb 25, 2025

Hi @antaljanosbenjamin, thank you for reviewing the PR. I addressed your comments, please take a look and let me know if anything else needs to be changed.

The following tests are failing:

  1. test_odbc_interaction/test.py::test_postgres_odbc_hashed_dictionary_no_tty_pipe_overflow but my change has not touched any ODBC logic.
  2. Stress test (ubsan) but the stack trace of this failure does not seem to be related to my change.

Please advise on the next steps to deal with these test failures.

@onkar onkar force-pushed the onkar/profile-event branch from 4af99ac to 8ec98d8 Compare February 26, 2025 19:11
@onkar onkar force-pushed the onkar/profile-event branch from 112a814 to ba168d0 Compare February 27, 2025 01:57
@antaljanosbenjamin
Copy link
Copy Markdown
Member

Sorry for the late answer, I was busy. The PR looks good. Could you please resolve the conflicts?

The test failures seems to be unrelated.

@onkar
Copy link
Copy Markdown
Contributor Author

onkar commented Mar 4, 2025

Sorry for the late answer, I was busy. The PR looks good. Could you please resolve the conflicts?

The test failures seems to be unrelated.

Thanks for the re-review @antaljanosbenjamin. I have resolved the conflicts. Please take a look and merge if everything looks good.

@antaljanosbenjamin
Copy link
Copy Markdown
Member

CH Inc sync failed for unrelated reason, merging this.

@antaljanosbenjamin antaljanosbenjamin added this pull request to the merge queue Mar 5, 2025
Merged via the queue into ClickHouse:master with commit bee4ac9 Mar 5, 2025
122 of 125 checks passed
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 5, 2025
baibaichen pushed a commit to Kyligence/ClickHouse that referenced this pull request Mar 6, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Mar 31, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 1, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 2, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 3, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 4, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 5, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 6, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 7, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
baibaichen pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 9, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 9, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 10, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 11, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 12, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 13, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 14, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
baibaichen pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 16, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 16, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 17, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 18, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 19, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
baibaichen pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 21, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 21, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 22, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 23, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 24, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 25, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 26, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 27, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 28, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
kyligence-git pushed a commit to Kyligence/ClickHouse that referenced this pull request Apr 29, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <neng.liu@kyligence.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-feature Pull request with new product feature pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A ProfileEvent showing how many records and bytes passed the WHERE filter in the query.

4 participants