Re: [druid-user] How to apply date range filter during ingestion

I haven’t seen a transformSpec used like this. Does it do anything? Are you trying to do something with particular rows, but keep all the rows?

Normally interval goes in the ioConfig - eg (from a reindex job):

{

“type”: “index_parallel”,

“spec”: {

“ioConfig”: {

“type”: “index_parallel”,

“inputSource”: {

“type”: “druid”,

“dataSource”: “dataTest”,

“interval”: “2020-10-03T00:00/2020-11-03T11:00”

}

},

}

I think you may need to specify the time as well.

https://druid.apache.org/docs/latest/querying/filters.html#filtering-on-the-timestamp-column

“type” : “interval”, “dimension” : “__time”, “intervals” : [ “2015-01-01T00:00:00.000Z/2100-01-01T00:00:00.000Z” ]