diff --git a/connector/static_types.go b/connector/static_types.go index 44d37a2..e7165a1 100644 --- a/connector/static_types.go +++ b/connector/static_types.go @@ -306,10 +306,10 @@ func getComparisonOperatorDefinition(dataType string) map[string]schema.Comparis "terms": schema.NewComparisonOperatorCustom(schema.NewArrayType(schema.NewNamedType(dataType))).Encode(), } - if dataType == "date" { - requiredObjectTypes["date_range_query"] = objectTypeMap["date_range_query"] - comparisonOperators["range"] = schema.NewComparisonOperatorCustom(schema.NewNamedType("date_range_query")).Encode() - } + // if dataType == "date" { // TODO: add back once object types are supported as comparison operators + // requiredObjectTypes["date_range_query"] = objectTypeMap["date_range_query"] + // comparisonOperators["range"] = schema.NewComparisonOperatorCustom(schema.NewNamedType("date_range_query")).Encode() + // } if dataType == "text" { comparisonOperators["match_phrase_prefix"] = schema.NewComparisonOperatorCustom(schema.NewNamedType(dataType)).Encode()