Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[FEATURE] Support pagination

Aperta
#14 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, sql
Ambito
cli

Direzione di ricerca

Inizia dalla gestione dell’input della CLI e dal percorso di dispatch delle query, dove attualmente ogni input viene inviato a OpenSearch. Definisci come i comandi per la dimensione della pagina e i comandi del cursore coesistono con le query SQL, quindi verifica il comportamento usando gli esempi per memorizzare, elencare, recuperare, aggiornare ed eliminare i cursori.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Is your feature request related to a problem?
Pagination is not supported

What solution would you like?
Implementing some commands which will manage the paging process. Currently, cli tool interprets every input as a query and sends to OpenSearch. The goal is to add some commands which will be interpreted by the CLI tool.
Example of usage:

opensearchsql> select * from calcs;
fetched rows / total rows = 17/17
...

opensearchsql> set page_size = 10;
opensearchsql> select * from calcs;
Cursor stored as ###
fetched rows / total rows = 10/17
...

opensearchsql> cursor list;
1: created at <timestamp> on page N on query "select ...."
2: created at <timestamp> on page M on query "select ...."

opensearchsql> cursor fetch 1;
Cursor updated as 1
fetched rows / total rows = x/y
...
opensearchsql> cursor fetch 1;
No cursor received, cursor 1 deleted
fetched rows / total rows = z/y
...

What alternatives have you considered?
Return cursor to the user. Not convenient for the end user, because cursor string could be pretty big.

Do you have any additional context?
Probably, I'll do the fix on my own.

Lingua principale
Python
Stelle
9
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opensearch-project/sql-cli

Tutte le issue di opensearch-project/sql-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.