Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Pierre RegazzoniPierre RegazzoniReporter
Dhanya GowrishDhanya GowrishIs this a Regression?
UnknownTriage
UntriagedStory Points
0Priority
MajorInstabug
Open Instabug
Details
Details
Assignee
Pierre Regazzoni
Pierre RegazzoniReporter
Dhanya Gowrish
Dhanya GowrishIs this a Regression?
Unknown
Triage
Untriaged
Story Points
0
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
PagerDuty
Sentry
Sentry
Sentry
Zendesk Support
Zendesk Support
Zendesk Support
Created January 8, 2024 at 4:02 AM
Updated July 10, 2024 at 8:28 AM
Resolved January 10, 2024 at 4:39 AM
This is a server ticket for https://couchbasecloud.atlassian.net/browse/AV-69973
Repro steps:
1. Load travel-sample dataset
2. Run the following queries:
a.
The result count of the above query:
b. Run a COUNT() against system:indexes without a predicate.
The result is:
This is because the Count() implementation of the system:indexes keyspace does the following:
1. Counts the indexes created on the bucket i.e on the bucket’s default._default collection - _twice.
Since the Object is a keyspace and a bucket.
https://github.com/couchbase/query/blob/8de352393a1cb1a9c41d0bd1e6de9288dc9b663a/datastore/system/system_keyspace_indexes.go#L113
https://github.com/couchbase/query/blob/8de352393a1cb1a9c41d0bd1e6de9288dc9b663a/datastore/system/system_keyspace_indexes.go#L141