如何使用 Superset REST API 执行查询?

问题描述 投票:0回答:1

承载令牌在标头中正确设置。

请求正文中写入的查询结果应在响应中返回。

superset_config.py
文件里有需要配置的吗?

sql rest apache-superset
1个回答
0
投票

我在查看他们的源代码时发现了这一点。

/api/v1/sqllab/execute/ 发出发布请求 并提出以下要求

 {
"client_id": "Some unique ID",
"database_id": { DATABASE ID },
"json": true,
"runAsync": false,
"catalog": { CATALOG },
"schema": { SCHEMA NAME },
"sql": {YOUR QUERY},
"sql_editor_id": "Some String ID",
"tab": "Some Title",
"tmp_table_name": "",
"select_as_cta": false,
"ctas_method": "TABLE",
"queryLimit": 1000,
"expand_data": true
}
© www.soinside.com 2019 - 2024. All rights reserved.