Skip to content

Method index:count returns wrong result for BITSET index #1896

@InteLigent

Description

@InteLigent
tarantool > box.space.test.index.status

---
- parts:
  - type: unsigned
    fieldno: 2
  id: 1
  type: BITSET
  name: status
  space_id: 2473
...

tarantool > box.space.test.index.status:select()

---
- - [1, 0]
  - [2, 0]
  - [3, 0]
  - [4, 2]
  - [5, 2]
  - [6, 3]
  - [7, 4]
  - [8, 5]
  - [9, 8]
...

tarantool > box.space.test.index.status:select(7, {iterator = box.index.BITS_ANY_SET})

---
- - [4, 2]
  - [5, 2]
  - [6, 3]
  - [7, 4]
  - [8, 5]
...

tarantool > box.space.test.index.status:count(7, {iterator = box.index.BITS_ANY_SET})

---
- 3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions