Handle array columns by picking the first element by LantaoJin · Pull Request #4909 · opensearch-project/sql · GitHub
Skip to content

Handle array columns by picking the first element#4909

Closed
LantaoJin wants to merge 1 commit into
opensearch-project:mainfrom
LantaoJin:pr/issues/4173
Closed

Handle array columns by picking the first element#4909
LantaoJin wants to merge 1 commit into
opensearch-project:mainfrom
LantaoJin:pr/issues/4173

Conversation

@LantaoJin

@LantaoJin LantaoJin commented Dec 5, 2025

Copy link
Copy Markdown
Member

Description

PPL v3 cannot handle the fields with array values. This PR is to handle those array columns by picking the first value instead of failure.

This PR is not to support array (ref #3751). It just mitigates the issue of query failures when access an array field.

Related Issues

Resolves #4173

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: Lantao Jin <ltjin@amazon.com>
@coderabbitai

coderabbitai Bot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

@LantaoJin

Copy link
Copy Markdown
Member Author

@LantaoJin LantaoJin changed the title Handle array columns by picking the first value Handle array columns by picking the first element Dec 5, 2025
@LantaoJin LantaoJin closed this Dec 17, 2025
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] Calcite PPL doesn't handle integer array columns

1 participant