[BUG] opensearch-sql CLI doesn't print a error return if http code is 500
@zhongnansu ci sta già lavorando.
Dal 30/11/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
Some queries cause a error on server side and REST returns a message describing it followed by code 500. In this case CLI doesn't print the error.
opensearchsql> SELECT A, B FROM (SELECT `key` as A, DAYOFWEEK(date1) AS B from calcs) tmp WHERE tmp.B IN (1, 7);
KeyError('datarows')

In such cases I have to use CURL to see the message:
curl -XPOST http://localhost:9200/_plugins/_sql -H 'Content-Type: application/json' -d '{"query" : "SELECT A, B FROM (SELECT `key` as A, DAYOFWEEK(date1) AS B from calcs) tmp WHERE B IN (1, 7);"}'
{
"error": {
"reason": "There was internal problem at backend",
"details": "The following method is not supported in Schema: DAYOFWEEK",
"type": "UnsupportedOperationException"
},
"status": 500
}
The CLI interface is much more convenient for use rather than CURL, so it would be useful to keep using it to see the error message.
Additional context
Low priority
- Lingua principale
- Python
- Stelle
- 9
- Fork
- 24
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di opensearch-project/sql-cli
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
opensearch-project/sql-cli#59 · 1 commento · 1 reazione ·
-
Update version on PyPiForse di nuovo libera @zhongnansu l’ha presa 188 giorni fa e non c’è nessuna pull request aperta. Apertadocumentation enhancement
opensearch-project/sql-cli#45 · 3 commenti · 1 assegnatario ·
Tutte le issue di opensearch-project/sql-cli
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
huggingface/smolagents#2976 ·
I maintainer di solito rispondono entro 1 giorno
-
bug Triage-Needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
FuRongJun-1999/dsh-memory#170 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pgvector/pgvector-python#163 ·
-
[开源推荐] 打拼音就出篆书的输入法,附古文字创作小工具Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
521xueweihan/HelloGitHub#3940 ·