case sqlparser.NotBetweenStr:
return newBoolQuery().MustNot(elastic.NewRangeQuery(colName).Gte(from).Lte(to)), nil
// This should be impossible since the query parser only calls this function with one of those
// operators strings.
return nil, query.NewConverterError(
"%s: unexpected operator '%s' for range condition",
query.MalformedSqlQueryErrMessage,
strings.ToUpper(operator),
)
}
}