[BUG] opensearch-sql CLI doesn't print a error return if http code is 500
@zhongnansu 已經在處理了。
開始於 2021年11月30日。
評估
這個 Issue 還沒有評估資料。
描述
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
- 主要語言
- Python
- 星號
- 9
- 分支
- 25
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
opensearch-project/sql-cli 的其他 Issue
-
Mend: dependency security vulnerability
難度 2/5 1-3 小時 新手友好度 68/100
-
Mend: dependency security vulnerability
難度 2/5 1-3 小時 新手友好度 58/100
-
Mend: dependency security vulnerability
難度 2/5 1-3 小時 新手友好度 58/100
-
難度 5/5 一週以上 新手友好度 20/100
opensearch-project/sql-cli#59 · 1 則留言 · 1 個 reaction ·
-
Update version on PyPi可能重新可做 @zhongnansu 於 214 天前認領,目前沒有進行中的 PR。 未關閉documentation enhancement
opensearch-project/sql-cli#45 · 3 則留言 · 已指派 1 人 ·
查看 opensearch-project/sql-cli 的全部 Issue
相似的 Issue
-
[BUG]: Compliance rules never see Unity Catalog views as views可能已有人在做 @wagnercsantos 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
databrickslabs/ontos#1348 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
ibm-granite/granite.build#649 ·
維護者通常 1 天內回覆
-
`forum_pr_poster` action will always return `none` when checking for pre-existing feedback threads, even if a feedback thread already exists.可能已有人在做 @pgmzeta 今天認領。 未關閉E-Verified P-Major
難度 2/5 1-3 小時 新手友好度 79/100
goonstation/goonstation#28259 ·
維護者通常 2 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 65/100
woonstadrotterdam/monumenten#70 ·
維護者通常 15 天內回覆
-
binding:python bug
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆