数据湖探索 DLI-DLI SDK与API的对应关系:SQL作业相关
SQL作业相关
Class |
Method |
Java Method |
Python Method |
API |
---|---|---|---|---|
Database |
创建数据库 |
POST /v1.0/{project_id}/databases |
||
删除数据库 |
DELETE /v1.0/{project_id}/databases/{database_name} |
|||
查询所有数据库 |
GET /v1.0/{project_id}/databases |
|||
修改数据库用户 |
- |
- |
PUT /v1.0/{project_id}/databases/{database_name}/owner |
|
Table |
创建 DLI 表 |
POST /v1.0/{project_id}/databases/{database_name}/tables |
||
创建OBS表 |
POST /v1.0/{project_id}/databases/{database_name}/tables |
|||
删除表 |
DELETE /v1.0/{project_id}/databases/{database_name}/tables/{table_name} |
|||
查询所有表 |
GET /v1.0/{project_id}/databases/{database_name}/tables?keyword=tb&with-detail=true |
|||
描述表信息 |
GET /v1.0/{project_id}/databases/{database_name}/tables/{table_name} |
|||
预览表内容 |
- |
- |
GET /v1.0/{project_id}/databases/{database_name}/tables/{table_name}/preview |
|
修改表用户 |
- |
- |
PUT /v1.0/{project_id}/databases/{database_name}/tables/{table_name}/owner |
|
Job |
导入数据 |
POST /v1.0/{project_id}/jobs/import-table |
||
导出数据 |
POST /v1.0/{project_id}/jobs/export-table |
|||
提交作业 |
POST /v1.0/{project_id}/jobs/submit-job |
|||
取消作业 |
- |
DELETE /v1.0/{project_id}/jobs/{job_id} |
||
查询所有作业 |
- |
GET /v1.0/{project_id}/jobs?page-size={size}¤t-page={page_number}&start={start_time}&end={end_time}&job-type={QUERY}&queue_name={test}&order={duration_desc} |
||
查询作业结果 |
- |
GET/v1.0/{project_id}/jobs/{job_id}?page-size={size}¤t-page={page_number} |
||
查询作业状态 |
- |
- |
GET/v1.0/{project_id}/jobs/{job_id}/status |
|
查询作业详细信息 |
- |
- |
GET/v1.0/{project_id}/jobs/{job_id}/detail |
|
查询SQL类型作业 |
- |
- |
||
检查SQL语法 |
- |
- |
POST /v1.0/{project_id}/jobs/check-sql |
|
导出查询结果 |
- |
- |
POST /v1.0/{project_id}/jobs/{job_id}/export-result |