return"",fmt.Errorf("missing time column argument for macro %v",name)
return"",fmt.Errorf("missing time column argument for macro %v",name)
}
}
returnfmt.Sprintf("extract(epoch from %s) BETWEEN %d AND %d",args[0],uint64(m.TimeRange.GetFromAsMsEpoch()/1000),uint64(m.TimeRange.GetToAsMsEpoch()/1000)),nil
returnfmt.Sprintf("extract(epoch from %s) BETWEEN %d AND %d",args[0],m.TimeRange.GetFromAsSecondsEpoch(),m.TimeRange.GetToAsSecondsEpoch()),nil