获取查询
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /dlf/v1/query/{queryId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| queryId |
string |
否 |
查询 ID |
d7b21d1ec4f441e79d5ba917c3283200 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结构体 |
||
| queryId |
string |
查询 ID,用于后续轮询结果 |
d7b21d1ec4f441e79d5ba917c3283200 |
| sql |
string |
SQL 文本,支持多条语句(分号分隔),在同一 session 内顺序执行 |
select * from table_name; |
| tier |
string |
执行规格,默认 standard |
standard |
| status |
string |
任务运行状态 |
COMPLETED |
| results |
array |
结果列表 |
|
| StatementResult |
结果列表 |
||
| createdAt |
integer |
任务的创建时间 |
1744970111419 |
| completedAt |
integer |
任务的完成时间 |
1744970111419 |
示例
正常返回示例
JSON格式
{
"queryId": "d7b21d1ec4f441e79d5ba917c3283200",
"sql": "select * from table_name;\n",
"tier": "standard\n\n",
"status": "COMPLETED",
"results": [
{
"index": 0,
"sql": "select * from table_name;",
"status": "COMPLETED",
"rowCount": 1000,
"executionTime": 100,
"downloadUrl": "https://xxx.oss-cn-hangzhou.aliyuncs.com/xxxx",
"error": "SQL_ERROR",
"errorCode": "\t\nThis feature is not implemented: xxx",
"schema": [
{
"name": "name",
"type": "string"
}
]
}
],
"createdAt": 1744970111419,
"completedAt": 1744970111419
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?