Skip to content

ORCA: Make partial agg use the ndistinct generated by segment to calculate the output rows #1203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jiaqizho
Copy link
Contributor

@jiaqizho jiaqizho commented Jul 1, 2025

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


@jiaqizho jiaqizho changed the title ORCA: Make partial agg use the ndistinct generated by segment to calculate the output rows [WIP]ORCA: Make partial agg use the ndistinct generated by segment to calculate the output rows Jul 1, 2025
@jiaqizho jiaqizho force-pushed the fix-orca-partial-agg-plan branch from 2db69e7 to 77b5ce1 Compare July 2, 2025 05:46
@jiaqizho jiaqizho changed the title [WIP]ORCA: Make partial agg use the ndistinct generated by segment to calculate the output rows ORCA: Make partial agg use the ndistinct generated by segment to calculate the output rows Jul 2, 2025
@jiaqizho
Copy link
Contributor Author

jiaqizho commented Jul 2, 2025

have some plan diff, and some diff from query in pg_statistic.

Let me test the tpc-ds and tpc-h before i fix the CI

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.

1 participant