{
"config": {
"builtin": {
"config": {},
"identifier": "log",
"tableType": "builtin"
},
"sql": "SELECT * FROM cars",
"table": "cars",
"union": {
"children": [
{}
],
"datasetType": "sql",
"ds": "string",
"fields": [
"string"
],
"position": {
"x": 0,
"y": 0
},
"rel2Parent": {
"fields": [
{
"childField": "string",
"parentField": "string"
}
],
"joinType": "inner"
}
}
},
"dataSourceId": "string",
"datasetType": "sql",
"syncMode": 0,
"viewName": "string"
}
curl --location --request POST '/ds/dataset/table/preview' \
--header 'Authorization: {{ACCESS_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"config": {
"builtin": {
"config": {},
"identifier": "log",
"tableType": "builtin"
},
"sql": "SELECT * FROM cars",
"table": "cars",
"union": {
"children": [
{}
],
"datasetType": "sql",
"ds": "string",
"fields": [
"string"
],
"position": {
"x": 0,
"y": 0
},
"rel2Parent": {
"fields": [
{
"childField": "string",
"parentField": "string"
}
],
"joinType": "inner"
}
}
},
"dataSourceId": "string",
"datasetType": "sql",
"syncMode": 0,
"viewName": "string"
}'
{
"args": [
null
],
"data": [
null
],
"fields": [
{
"biType": "string",
"biTypeFmt": "precision:ms",
"calculated": true,
"checked": true,
"colIndex": 0,
"createdAt": "2019-08-24T14:15:22Z",
"id": "string",
"isMeasure": true,
"name": "string",
"originalBiType": "string",
"originalName": "string",
"originalType": "varchar",
"size": 0,
"style": {},
"tableId": "string",
"tableName": "string",
"updatedAt": "2019-08-24T14:15:22Z",
"userColIdx": 0
}
],
"isDefault": true,
"sql": "string",
"stat": {
"grouped": true,
"limit": 0,
"nCategories": 0,
"nStacks": 0,
"nValues": 0,
"offset": 0,
"reqFields": 0,
"reqGroups": 0,
"reqStacks": 0,
"stacked": true
},
"style": {}
}