Skip to content

ORCA: guard LIMIT max-card derivation - #2426

Open
reshke wants to merge 2 commits into
apache:mainfrom
reshke:fix-orca-limit-cardinality-20261125
Open

reshke wants to merge 2 commits into
apache:mainfrom
reshke:fix-orca-limit-cardinality-20261125

Conversation

@reshke

@reshke reshke commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

DQP QUERY_PARTITIONING stack:

"Assertion failed: m_ull <= GPOPT_MAX_CARD (CMaxCard.h:56)"

per CI run https://github.com/apache/cloudberry/actions/runs/45589701142/job/139120319807

DQP QUERY_PARTITIONING stack:

"Assertion failed: m_ull <= GPOPT_MAX_CARD (CMaxCard.h:56)"
@reshke
reshke force-pushed the fix-orca-limit-cardinality-20261125 branch from 741d959 to bb03ef2 Compare November 25, 2026 20:09
@yjhjstz
yjhjstz self-requested a review November 25, 2026 22:36
select * from int8_tbl limit (case when random() < 0.5 then null::bigint end);
select * from int8_tbl offset (case when random() < 0.5 then null::bigint end);

-- A LIMIT count above ORCA's finite CMaxCard range must remain a valid bound.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

suggest set optimizer_trace_fallback =on;

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.

2 participants