Skip to main content

DataFetcher

Goal

Fetch data from a datasource.

Inputs

None.

Outputs

One output. No naming constraint for outputKey and outputName.

Parameters

namedescriptiondefault value
component.dataSourceThirdEye datasource to use.
component.queryQuery to execute. The query can use macros.

Example

{
"name": "currentDataFetcher",
"type": "DataFetcher",
"params": {
"component.dataSource": "pinot", # ThirdEye datasource
"component.query": "SELECT __timeGroup(timeColumn, 'EPOCH', 'P1D') as ts, sum(views) as met FROM pageviews WHERE __timeFilter(timeColumn, 'EPOCH') GROUP BY ts ORDER BY ts LIMIT 10000"
},
"inputs": [],
"outputs": [
{
"outputKey": "currentData", # no constraint
"outputName": "currentOutput" # no constraint
}
]
}