Skip to content

Commit

Permalink
Merge pull request #23 from hasura/m-bilal/remove-date-range-query
Browse files Browse the repository at this point in the history
remove `date_range_query` as a comparison operator
  • Loading branch information
gneeri authored Aug 12, 2024
2 parents 9f1f508 + 3d53567 commit 07c9e95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connector/static_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 07c9e95

Please sign in to comment.