[BugFix] Not between should use range query by qianheng-aws · Pull Request #5016 · opensearch-project/sql · GitHub
Skip to content

[BugFix] Not between should use range query#5016

Merged
yuancu merged 1 commit into
opensearch-project:mainfrom
qianheng-aws:4903
Jan 6, 2026
Merged

[BugFix] Not between should use range query#5016
yuancu merged 1 commit into
opensearch-project:mainfrom
qianheng-aws:4903

Conversation

@qianheng-aws

Copy link
Copy Markdown
Collaborator

Description

Not between should use range query instead of script query. It's caused by Range<?>::lowerBoundType/upperBoundType will throw NPE if its upper/lower Bound is null, therefore it falls back to script push down.

Related Issues

Resolves #4903

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff or -s.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Heng Qian <qianheng@amazon.com>
@coderabbitai

coderabbitai Bot commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

@qianheng-aws qianheng-aws added bugFix pushdown pushdown related issues labels Jan 6, 2026
@yuancu yuancu merged commit b39d803 into opensearch-project:main Jan 6, 2026
42 of 43 checks passed
opensearch-trigger-bot Bot pushed a commit that referenced this pull request Jan 6, 2026
Signed-off-by: Heng Qian <qianheng@amazon.com>
(cherry picked from commit b39d803)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
LantaoJin pushed a commit that referenced this pull request Jan 7, 2026
* [BugFix] Not between should use range query (#5016)

Signed-off-by: Heng Qian <qianheng@amazon.com>
(cherry picked from commit b39d803)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix IT

Signed-off-by: Heng Qian <qianheng@amazon.com>

* Fix unlimited symbol

Signed-off-by: Heng Qian <qianheng@amazon.com>

* Fix unlimited symbol

Signed-off-by: Heng Qian <qianheng@amazon.com>

---------

Signed-off-by: Heng Qian <qianheng@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Heng Qian <qianheng@amazon.com>
aalva500-prog pushed a commit to aalva500-prog/sql that referenced this pull request Jan 12, 2026
Signed-off-by: Heng Qian <qianheng@amazon.com>
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
@qianheng-aws qianheng-aws deleted the 4903 branch March 26, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Expression not between produces script query instead of range query

3 participants