Druid merge task JSON example


Can someone please share an example of druid merge task?

I looked at http://druid.io/docs/latest/ingestion/tasks.html#merge-task and created the following JSON but getting an exception. Then I realized that there is no actual example of druid merge task.

{ “type”: “merge”, “id”: “qwer”, “dataSource”: “metrics”,“aggregations”: [“value”], “segments”: [“2016-11-15T06:00:00.000Z_2016-11-15T07:00:00.000Z”, “2016-11-15T07:00:00.000Z_2016-11-15T08:00:00.000Z”]}

as per the website documentations

    "type": "merge",
    "id": <task_id>,
    "dataSource": <task_datasource>,
    "aggregations": <list of aggregators>,
    "segments": <JSON list of DataSegment objects to merge>

So you example is missing the aggregations blob for instance you can use the same aggregators to produce the segments or new ones.