Porting work done in
Logic should split the filter conditions into two parts: those predicates referred to the time dimension, and predicates referred to other columns.
Then, the predicates on the time dimension should be translated into Druid intervals, possibly consolidating those ranges e.g. to detect overlapping. The other predicates will go into the Druid filter field.