Skip to content

ORCA: Fix missing the aggstar in AggRef#1051

Merged
jiaqizho merged 1 commit intoapache:mainfrom
jiaqizho:orca-support-agg-star
May 7, 2025
Merged

ORCA: Fix missing the aggstar in AggRef#1051
jiaqizho merged 1 commit intoapache:mainfrom
jiaqizho:orca-support-agg-star

Conversation

@jiaqizho
Copy link
Copy Markdown
Contributor

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 force-pushed the orca-support-agg-star branch from 9d42314 to 4549f76 Compare April 17, 2025 03:03
@jiaqizho jiaqizho changed the title [DNM]ORCA: Fix missing the aggstar in AggRef ORCA: Fix missing the aggstar in AggRef Apr 17, 2025
@jiaqizho jiaqizho requested a review from HuSen8891 April 17, 2025 05:28
@jiaqizho jiaqizho force-pushed the orca-support-agg-star branch from 4549f76 to c82d072 Compare April 17, 2025 05:50
@jiaqizho jiaqizho closed this May 7, 2025
@jiaqizho jiaqizho force-pushed the orca-support-agg-star branch from c82d072 to 5e1e573 Compare May 7, 2025 01:31
@jiaqizho jiaqizho reopened this May 7, 2025
In the ORCA optimizer, `aggref->aggstar` is not filled.
It will cause the executor to treat `count(*)` as `count()`.

Although the results of `count()` and `count(*)` are the
same. But without `aggstar=true` may affect the custom scan.
Assuming that the storage engine pre-calculates the content
of `count(*)` and uses `aggstar` to decide whether to use
custom scan, the ORCA plan will cause the custom not work.
@jiaqizho jiaqizho force-pushed the orca-support-agg-star branch from de16f6b to 5629020 Compare May 7, 2025 03:38
@jiaqizho jiaqizho merged commit 7e00589 into apache:main May 7, 2025
26 checks passed
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.

3 participants