Skip to content

fix: Allow aggregate scan planning warnings to be disabled.#4402

Merged
stuhood merged 1 commit into0.22.xfrom
backport-4394-to-0.22.x
Mar 17, 2026
Merged

fix: Allow aggregate scan planning warnings to be disabled.#4402
stuhood merged 1 commit into0.22.xfrom
backport-4394-to-0.22.x

Conversation

@paradedb-bot
Copy link
Copy Markdown
Contributor

Description

Backport of #4394 to 0.22.x.

## What

Allow aggregate scan planning warnings to be disabled.

## Why

The aggregate scan planning warnings are helpful for users who:
1. are designing queries to get ideal performance
2. are using `pdb.agg` (in which case the aggregate scan _must_ be used)

...but they are not necessarily helpful for users who have turned on the
scan globally in order to get wins whenever possible, without
necessarily focusing on the performance of individual queries.

## How

Added the `paradedb.check_aggregate_scan`, which is obeyed unless
`pdb.agg` is used (in which case the scan is the only possible way to
satisfy a query).

(cherry picked from commit c8b01e2)
@paradedb-bot paradedb-bot requested a review from a team as a code owner March 17, 2026 21:32
@paradedb-bot paradedb-bot requested review from mdashti and removed request for a team March 17, 2026 21:32
@paradedb-bot paradedb-bot added the automated-cherry-pick This PR is the result of our automated cherry-pick machinery. label Mar 17, 2026
@stuhood stuhood merged commit e4f47a0 into 0.22.x Mar 17, 2026
20 checks passed
@stuhood stuhood deleted the backport-4394-to-0.22.x branch March 17, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-cherry-pick This PR is the result of our automated cherry-pick machinery.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants