Skip to content

Test cases for [CALCITE-4232] Elasticsearch IN Query is not supported#4931

Open
xuzifu666 wants to merge 1 commit intoapache:mainfrom
xuzifu666:calcite-4232
Open

Test cases for [CALCITE-4232] Elasticsearch IN Query is not supported#4931
xuzifu666 wants to merge 1 commit intoapache:mainfrom
xuzifu666:calcite-4232

Conversation

@xuzifu666
Copy link
Copy Markdown
Member

@xuzifu666 xuzifu666 commented May 9, 2026

jira: https://issues.apache.org/jira/browse/CALCITE-4232

Currently Elasticsearch adapter supports IN queries, specifically implemented through the RexCall SEARCH → Sarg → terms query chain. The core logic is located in PredicateAnalyzer.java L193-195:

case INTERNAL:
  switch (call.getKind()) {
  case SEARCH:
    return canBeTranslatedToTermsQuery(call);
  }

This pr just add test cases for it.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 9, 2026

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