pgj opened a new pull request, #4379:
URL: https://github.com/apache/couchdb/pull/4379

   The remainder argument for the `$mod` operator can be zero, while its 
documentation suggests otherwise.  It actually covers a very realistic use case 
where divisibility is expressed.
   
   [Neither related restrictions could be identified in the 
sources](https://github.com/apache/couchdb/blob/adf17140e81d0b74f2b2ecdea48fc4f702832eaf/src/mango/src/mango_selector.erl#L512:L513)
 [nor MongoDB forbids 
this](https://www.mongodb.com/docs/manual/reference/operator/query/mod/).  
Tests also seem to exercise [this specific 
case](https://github.com/apache/couchdb/blob/0059b8f90e58e10b199a4b768a06a762d12a30d3/src/mango/test/03-operator-test.py#L58).
  Thanks @iilyak for checking on these.
   
   Tasks:
   - [ ] Backport to all affected branches


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to