Skip to content

Add row-count statistics to explain_query(..., physical=True)#21046

Draft
rjzamora wants to merge 15 commits intorapidsai:mainfrom
rjzamora:explain-row-count
Draft

Add row-count statistics to explain_query(..., physical=True)#21046
rjzamora wants to merge 15 commits intorapidsai:mainfrom
rjzamora:explain-row-count

Conversation

@rjzamora
Copy link
Member

Description

We previously print row-count statistics for explain_query(..., physical=False), only. This PR updates explain_query to print row-count statistics in more cases.

The immediate goal here is to make it easier to understand how estimated row-counts relate the the physical plan.

In follow-up work, I'd like to add a feature to print the physical plan after execution (including real row-count statistics).

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@rjzamora rjzamora self-assigned this Jan 14, 2026
@rjzamora rjzamora added feature request New feature or request 2 - In Progress Currently a work in progress non-breaking Non-breaking change labels Jan 14, 2026
@copy-pr-bot
Copy link

copy-pr-bot bot commented Jan 14, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions bot added Python Affects Python cuDF API. cudf-polars Issues specific to cudf-polars labels Jan 14, 2026
@GPUtester GPUtester moved this to In Progress in cuDF Python Jan 14, 2026
@rjzamora rjzamora changed the title Add row-count statistics to explain_query(..., physical=True) [WIP] Add row-count statistics to explain_query(..., physical=True) Jan 15, 2026
@wence- wence- marked this pull request as ready for review January 22, 2026 12:41
@wence- wence- requested a review from a team as a code owner January 22, 2026 12:41
@wence-
Copy link
Contributor

wence- commented Jan 22, 2026

/ok to test 91c585f

@rjzamora rjzamora changed the title [WIP] Add row-count statistics to explain_query(..., physical=True) Add row-count statistics to explain_query(..., physical=True) Jan 22, 2026
@rjzamora rjzamora added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 2 - In Progress Currently a work in progress labels Jan 22, 2026
@rjzamora rjzamora added 0 - Waiting on Author Waiting for author to respond to review and removed 5 - Ready to Merge Testing and reviews complete, ready to merge labels Jan 28, 2026
@rjzamora rjzamora marked this pull request as draft January 28, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 - Waiting on Author Waiting for author to respond to review cudf-polars Issues specific to cudf-polars feature request New feature or request non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants