opensearch-project / opensearch-project/sql

[BUG] Pagination of index aliases is not supported

Open
#1,398 6 comments 2 reactions 0 assignees View on GitHub

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:

  1. Create an index -- indexA -- and load data
  2. Create an alias -- aliasA -- for the index
  3. Send query like SELECT * FROM aliasA with non-zero fetch_size
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.