Skip to content

[Improvement] Allow OR condition with "match" expression#76

Draft
henriqueng wants to merge 161 commits into
pinterest:mainfrom
henriqueng:support_disjunctions_with_match
Draft

[Improvement] Allow OR condition with "match" expression#76
henriqueng wants to merge 161 commits into
pinterest:mainfrom
henriqueng:support_disjunctions_with_match

Conversation

@henriqueng
Copy link
Copy Markdown

@henriqueng henriqueng commented Jan 22, 2026

Why I'm doing:

Starrocks returns the following error when using a match predicate (based on a column with GIN) in an "OR" query:

Match can only used as a pushdown predicate on column with GIN in a single query.

This only happens with OR queries. On the other hand, AND queries work fine.

What I'm doing:

Load roaring bitmap from inverted index for all match expressions that are not on root level in order to use them during evaluate, unblocking OR conditions with match expressions based on inverted index.

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.4
    • 3.3
    • 3.2
    • 3.1
    • 3.0

@henriqueng henriqueng force-pushed the support_disjunctions_with_match branch from e5e3273 to dd96a43 Compare January 23, 2026 23:58
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jan 23, 2026
Signed-off-by: Henrique Duarte Lima <henrique@engduarte.com>
@henriqueng henriqueng force-pushed the support_disjunctions_with_match branch from dd96a43 to 9e72305 Compare January 24, 2026 00:09
Signed-off-by: Henrique Duarte Lima <henrique@engduarte.com>
@henriqueng henriqueng force-pushed the support_disjunctions_with_match branch 2 times, most recently from b3117c9 to c97b247 Compare January 30, 2026 23:39
@github-actions github-actions Bot removed the documentation Improvements or additions to documentation label Jan 30, 2026
@henriqueng henriqueng force-pushed the support_disjunctions_with_match branch from c97b247 to c219592 Compare January 30, 2026 23:41
@henriqueng henriqueng force-pushed the support_disjunctions_with_match branch 2 times, most recently from fe3aa7a to 5553c65 Compare January 31, 2026 02:39
Signed-off-by: Henrique Duarte Lima <henrique@engduarte.com>
@henriqueng henriqueng force-pushed the support_disjunctions_with_match branch from 5553c65 to e24fa5c Compare January 31, 2026 02:41
dolfinus and others added 15 commits January 30, 2026 20:55
Signed-off-by: Martynov Maxim <martinov_m_s_@mail.ru>
Signed-off-by: stdpain <drfeng08@gmail.com>
Co-authored-by: stdpain <drfeng08@gmail.com>
Signed-off-by: alvin-celerdata <alvin.zhao@celerdata.com>
Signed-off-by: alvin-celerdata <alvin.zhao@celerdata.com>
Signed-off-by: alvin-celerdata <alvin.zhao@celerdata.com>
Signed-off-by: alvin-celerdata <alvin.zhao@celerdata.com>
Signed-off-by: alvin-celerdata <alvin.zhao@celerdata.com>
Signed-off-by: Kevin Cai <kevin.cai@celerdata.com>
…ickhouse (StarRocks#65825)

Signed-off-by: xiaoxiaobinin <916352455@qq.com>
Signed-off-by: stdpain <drfeng08@gmail.com>
…s#68764)

Signed-off-by: Ratul Dawar <ratuldawar11@gmail.com>
Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
…ks#68674)

Signed-off-by: 絵空事スピリット <wanglichen@starrocks.com>
Co-authored-by: Tony Xia <tony.xia@celerdata.com>
Co-authored-by: 絵空事スピリット <wanglichen@starrocks.com>
…destroy (StarRocks#68801)

Signed-off-by: luohaha <18810541851@163.com>
…index flush (StarRocks#68772)

Signed-off-by: arvindksi274-ksolves <arvind.kandpal@ksolves.com>
srlch and others added 30 commits February 11, 2026 09:51
…e meta (StarRocks#68781)

Signed-off-by: srlch <linzichao@starrocks.com>
Signed-off-by: SevenJ <wenjun7j@gmail.com>
Signed-off-by: alvin-celerdata <alvin.zhao@celerdata.com>
…splitting (StarRocks#69152)

Signed-off-by: luohaha <18810541851@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…tarRocks#69149)

Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
Signed-off-by: SevenJ <wenjun7j@gmail.com>
…e. (StarRocks#69063)

Signed-off-by: edwinhzhang <edwinhzhang@tencent.com>
Signed-off-by: Henrique Duarte Lima <henrique@engduarte.com>
Signed-off-by: Henrique Duarte Lima <henrique@engduarte.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation title needs [type]

Projects

None yet

Development

Successfully merging this pull request may close these issues.