suedschwede opened a new issue #13476:
URL: https://github.com/apache/superset/issues/13476
I want to use the chart data api without defining the column names
In the schema definition columns is not mandatory
```
columns = fields.List(
fields.String(),
description="Columns which to select in the query.",
allow_none=True,
)
```
I want to use following query object
```
{
"datasource": {
"id": 3,
"type": "table"
},
"queries": [
{
"row_limit": 10,
"row_offset": 1
}
],
"result_format": "json",
"result_type": "results"
}
```
I made a quick fix on my system
superset/common/query_context.py
```
def get_single_payload(
.....
if len(query_obj.columns) < 1:
query_obj.columns = [o.column_name for o in
self.datasource.columns]
......
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]