Bitwise query operators

It would be VERY VERY helpful to have a set of bitwise operators/functions of n1ql fields, like ‘bits(All/Any)(Set/Clear)’.
This will allow to use advanced data access pattern live bloom filters and so on.

I’ve raised a feature request for this: https://issues.couchbase.com/browse/MB-24849

Thank you!

You’ve mentioned a Postgres bit string operations while others (SQL and Oracle) direct to numerical, I’m not sure which design your team will choose, but here’s the link to numerical in Postgres https://www.postgresql.org/docs/9.6/static/functions-math.html

Also, I would like to include a link to MongoDB functions as direct Couchbase competitor https://docs.mongodb.com/manual/reference/operator/query-bitwise/

Thank you, again!

1 Like