return"",fmt.Errorf("missing time column argument for macro %v",name)
}
returnfmt.Sprintf("%s BETWEEN '%s' AND '%s'",args[0],m.TimeRange.GetFromAsTimeUTC().Format(time.RFC3339),m.TimeRange.GetToAsTimeUTC().Format(time.RFC3339)),nil
returnfmt.Sprintf("%s BETWEEN '%s' AND '%s'",args[0],m.timeRange.GetFromAsTimeUTC().Format(time.RFC3339),m.timeRange.GetToAsTimeUTC().Format(time.RFC3339)),nil
returnfmt.Errorf("Column metric must be of type CHAR, VARCHAR, NCHAR or NVARCHAR. metric column name: %s type: %s but datatype is %T",columnNames[metricIndex],columnTypes[metricIndex].DatabaseTypeName(),values[metricIndex])