davisp commented on a change in pull request #1376: Add fields to sort based on
selector
URL: https://github.com/apache/couchdb/pull/1376#discussion_r193520816
##########
File path: src/mango/src/mango_selector.erl
##########
@@ -638,11 +639,110 @@ has_required_fields_int([{[{Field, Cond}]} | Rest],
RequiredFields) ->
end.
+% Returns true if a field in the selector is a constant value e.g. {a: {$eq:
1}}
+is_constant_field(Selector, Field) ->
+ is_constant_field_int(Selector, Field).
Review comment:
Having this pass through to the _int suffixed version is unnecessary. Just
remove this function and remove _int from all the clauses below.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services