opensearch-project / opensearch-project/sql

[ENHANCEMENT] Adding filter for bucketNullable=false by hint strategy

Open
#4,403 0 comments 0 reactions 1 assignee View on GitHub

@qianheng-aws is already working on this.

Since Sep 29, 2025.

calcite enhancement PPL
Dominant language
Java
Stars
176
Forks
229
Avg merge
2d 21h
Merged PRs (30d)
43

Description

Is your feature request related to a problem?
This is a follow up to #3550, which introduce a new configuration of bucketNullable.

That PR implements bucketNullable=false by adding a IS_NOT_NULL FILTER in logical plan. However this new filter operator is redundant since we already has hint(BUCKET_NULLABLE=false) in LogicalAggregate to implies null bucket is not included, and it will also prevent aggregate push down in some cases.

What solution would you like?
Add that filter in planning process by hint strategy instead of directly add it in logical plan.

What alternatives have you considered?
A clear and concise description of any alternative solutions or features you've considered.

Do you have any additional context?
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.