[moved: JavaSDK->CouchbaseServer] N1QL for 4.1.X count(*) problem

@simonbasle,
i replaced adhoc to “true” just after i saw this error and then everything had become fine. But:

  1. how can i benefit from prepared statement in this case, i.e. how to skip plan preparation phase ?
  2. should i use count(a) or count(*) is “smart enough” to pre-optimize query and use only secondary index data to count ? Index = “create index on bucket(a,b) where a is valued”.
  3. Where can i find docs about returned messages error codes detailed description ?