You have to suitably qualify sequence names - if you want to use just ‘DOKNR’ then query_context must be set to identify a bucket & scope; sequences are scope-level entities (there are no global sequences).
Hej!
Thank you for your reply - I do not understand yet:
We created all of our buckets using the “Add Bucket” Link in the UI accessed through the browser.
They have been created with
Hello!
Thank you for your reply.
When I select a Bucket and a context on the top right of the Query editor page, I get the same error message as with the fully qualifed sequence name:
“Sequence support is not enabled for bucket NN”
Thank you and best regards, Markus
You should not be struggling to create a sequence if the _query collection exists for your bucket; the screenshot does suggest it should but you haven’t expanded the the scope.
You can confirm the collection exists with:
SELECT `bucket` FROM system:all_keyspaces WHERE id = "_query"
Then of course you can only create sequences for buckets which have this collection.
I hoped my cut-n-paste of creating a sequence in CE would illustrate it is indeed possible - however I did demonstrate on 7.6.2 (as it was what I had to hand) and you did state 7.6.1. Sorry.
This seems to be a bug in 7.6.1; please try 7.6.2 or 7.6.3.
Thank you for your reply.
I even created my own scope “myscope” in the bucket where I desire to create the sequence and afterwards selected the bucket and the scope in the Query Editor page to reflect this.
I still get the same error message … will try with 7.6.2 now …
Thank you and best regards, Markus