opensearch-project / opensearch-project/sql
[BUG] Pagination of index aliases is not supported
Open
Nobody has claimed this yet.
bug
error-experience
pagination
SQL
- Dominant language
- Java
- Stars
- 176
- Forks
- 229
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 43
Description
What is the bug?
Pagination of index alias does not work.
How can one reproduce the bug?
Steps to reproduce the behaviour:
- Create an index --
indexA-- and load data - Create an alias --
aliasA-- for the index - Send query like
SELECT * FROM aliasAwith non-zerofetch_size - See error like
{
"error": {
"details": "Index type [alias_phrases] does not exist",
"reason": "There was internal problem at backend",
"type": "IllegalArgumentException"
},
"status": 500
}
What is the expected behavior?
Paging an index directly or its alias should produce the same result.
See this stack overflow question for reference.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the non-zero fetch_size query against an index and its alias, then trace the pagination handling that produces the missing index type error. Done means paging the alias produces the same results as paging the index directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100