|
名稱 |
類型 |
描述 |
樣本值 |
|---|---|---|---|
|
object |
非同步 SQL 返回的資料結構 |
||
| id |
string |
非同步 SQL 的 ID |
690C4F2A16FBD65C40000484_14 |
| state |
string |
非同步 SQL 的當前執行狀態,可以為以下三個狀態:
其中,RUNNING 是臨時狀態, 表示 SQL 還在執行過程中。僅當狀態為 FINISHED 時,才表示請求執行成功,可以讀取結果了。另外,只有狀態為 FAILED 時,返回結果中的 error_code 和 error_message 才有意義。 |
FINISHED |
| AsyncSqlMetaPB |
object |
SQL 相關的 meta 資訊 |
|
| result_rows |
integer |
結果總行數。讀取結果是,offset 值不應該超過這個值。 |
12000 |
| processed_rows |
integer |
處理的未經處理資料行數 |
10000000 |
| elapsed_milli |
integer |
SQL 執行時間(毫秒) |
30000 |
| cpu_sec |
number |
消耗的 cpu 總時間(秒) |
0.2 |
| cpu_cores |
integer |
使用了多少個 cpu core |
10 |
| progress |
string |
SQL 結果是否精確,它可以為以下兩個值:
|
Complete |
| keys |
array |
SQL 結果對應的 column 名稱,這裡的 keys 和 select 中的欄位是一一對應的。 |
|
|
string |
column 名稱 |
["name", "age", "gender"] |
|
| rows |
array |
SQL 結果。array 中的每個元素也是數組,對應具體的一行結果。 |
|
|
array |
某行結果 |
||
|
string |
某列結果 |
["Jimmy", "20", "male"] |
|
| error_code |
string |
SQL 執行失敗後,error_code 中包含了具體的錯誤碼 |
InvalidQuery |
| error_message |
string |
SQL 執行失敗後,error_message 中包含了具體的錯誤資訊 |
line 37:14: Column 'xyz' cannot be resolved |
AsyncSqlResponseData
更新時間:
Copy as MD
该文章对您有帮助吗?