You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query param for attaching fields to response json (#469)
This PR adds query parameters to format response output.
Mainly duplicating existing fill null option to query param
and adding a withFields param options.
Attaching schema to output can benefit cases where client
wants to display table but the table API wants all table
columns to be defined first.
Example: {{endpoint}}/api/v1/query?fields=true
"query": "select min(p_timestamp), max(p_timestamp) from {{stream_name}}",
```
{
"fields": [
"MIN(app.p_timestamp)",
"MAX(app.p_timestamp)"
],
"records": [
{
"MAX(app.p_timestamp)": "2023-08-07T05:55:59.738",
"MIN(app.p_timestamp)": "2023-08-07T05:55:20.335"
}
]
}
```
0 commit comments