Different CAS value for the same document obtained via Java SDK and N1QL

The document does exist, it was created before I tried the code snippet.

The question can be boiled down to why do I get different CAS values on:

  1. Java SDK - bucket.get(“docId”).cas()

  2. N1QL - SELECT meta(b).cas FROM bucketName b WHERE meta(b).id = “docId”

Might it be similar to this issue found in the Node.js SDK?

https://issues.couchbase.com/browse/JSCBC-196

J.