Skip to content

Document BITRANGEINTARRAY offset ranges, ZEROS, and pagination - #4304

Merged
dwdougherty merged 6 commits into
redis:feature-oss-8.12from
aviggiano:agent/bitmap-negative-ranks-docs
Oct 28, 2026
Merged

dwdougherty merged 6 commits into
redis:feature-oss-8.12from
aviggiano:agent/bitmap-negative-ranks-docs

Conversation

@aviggiano

@aviggiano aviggiano commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Updates the bitmap documentation to match merged redis/redis#15986: BITRANGEINTARRAY key start end [BYTE|BIT] [LIMIT count] [ZEROS].

  • Document set-bit reads by default, ZEROS, inclusive offset ranges, direct string reads, and BIT/BYTE pagination.
  • Align examples, command metadata, the syntax diagram, and current benchmark guidance. Historical measurements are unchanged.

Validation against merge commit 157e3f3b: 23 focused feature tests, 66 documented command/reply checks across RESP2/RESP3, 12,800 range/LIMIT checks, and 768 pagination sequences passed. Metadata, generator idempotence, SVG, YAML, links, and patch checks passed. Full-site rendering was not run because Hugo is unavailable.


Note

Low Risk
Documentation-only changes with no server or client runtime impact; risk is limited to possible doc inaccuracies for integrators.

Overview
Updates Redis docs to match the consolidated BITRANGEINTARRAY behavior from redis/redis#15986, replacing the old element-rank model with BITCOUNT-style byte/bit ranges and new optional flags.

The command reference (bitrangeintarray.md) now documents BYTE | BIT, LIMIT count, and ZEROS, revised arity/metadata, complexity, reply semantics (range clamped to value length, pagination rules), and expanded examples—including string-backed bitmaps read without conversion. The syntax railroad diagram reflects the optional arguments.

The bitmaps guide rewrites the integer-array section for offset-based enumeration, LIMIT paging (BIT vs BYTE continuation), clear-bit reads, and compatibility with both string and native Roaring keys under any bitmap-default-roaring setting; read-only commands are clarified as not changing stored representation.

Benchmark guidance notes the harness maps module ranks to equivalent native bit offset ranges, and that historical numbers do not cover ZEROS, LIMIT, or string scans.

Reviewed by Cursor Bugbot for commit e23604d. Bugbot is set up for automated code reviews on this repo. Configure here.

@dwdougherty dwdougherty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @aviggiano. Approved.

@dwdougherty dwdougherty self-assigned this Oct 20, 2026
@dwdougherty dwdougherty added the oss Redis Open Source label Oct 20, 2026
@dwdougherty

Copy link
Copy Markdown
Collaborator

May I go ahead and merge this PR?

@aviggiano

Copy link
Copy Markdown
Contributor Author

there's a small discussion around limits, so can you wait before the other one is merged?

@dwdougherty

Copy link
Copy Markdown
Collaborator

Will do.

@aviggiano aviggiano changed the title Document negative BITRANGEINTARRAY ranks and the shared range limit Document negative BITRANGEINTARRAY ranks and uncapped results Oct 21, 2026
@aviggiano aviggiano changed the title Document negative BITRANGEINTARRAY ranks and uncapped results Document BITRANGEINTARRAY ranks, uncapped results, and string reads Oct 22, 2026
@dwdougherty

Copy link
Copy Markdown
Collaborator

Hi @aviggiano. Are you still waiting for more info. about this PR? If not, may I go ahead and merge it?

@aviggiano

Copy link
Copy Markdown
Contributor Author

It's still unfinished. We can mark this a draft PR for the moment

@dwdougherty
dwdougherty marked this pull request as draft October 26, 2026 14:58
@aviggiano aviggiano changed the title Document BITRANGEINTARRAY ranks, uncapped results, and string reads Document BITRANGEINTARRAY values, offset ranges, and pagination Oct 27, 2026
@sundb

sundb commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

@aviggiano redis/redis#15986 merged, pls update this PR, thx.

@aviggiano aviggiano changed the title Document BITRANGEINTARRAY values, offset ranges, and pagination Document BITRANGEINTARRAY offset ranges, ZEROS, and pagination Oct 28, 2026
@aviggiano
aviggiano marked this pull request as ready for review October 28, 2026 11:58
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-28T11:58:15.579486Z e23604d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@aviggiano

Copy link
Copy Markdown
Contributor Author

@dwdougherty Updated to match the merged command. Could you review and remove do not merge yet?

@dwdougherty

Copy link
Copy Markdown
Collaborator

Good to merge?

@aviggiano

Copy link
Copy Markdown
Contributor Author

@dwdougherty good to merge now

@dwdougherty

Copy link
Copy Markdown
Collaborator

\0/ !

@dwdougherty
dwdougherty merged commit ba5282a into redis:feature-oss-8.12 Oct 28, 2026
4 checks passed
dwdougherty added a commit that referenced this pull request Nov 23, 2026
* DEV: (feat/cmds) docs for CMS enhancements in 8.12 (#3953)

* DEV: (feat/cmds) docs for blessed keys in 8.12 (#4012)

* Document aof_cmd_duration in INFO persistence (#4006)

Co-authored-by: Cursor <[email protected]>

* DEV: docs for HNSW compression in 8.12 (#4106)

* DEV: docs for HNSW compression in 8.12

* Apply review suggestion

Clarified that disk-based vector indexes ignore both COMPRESSION and TRAINING_THRESHOLD.

* DEV: (feat) docs for streams observability metrics MVP in 8.12 (#4140)

* DEV: (feat) docs for streams observability metrics MVP in 8.12

* Update content/develop/data-types/streams/_index.md

Co-authored-by: mich-elle-luna <[email protected]>

---------

Co-authored-by: mich-elle-luna <[email protected]>

* DEV: (cmds) JSON: auto-create deep paths in 8.12 (#4257)

* DEV: (cmds) JSON: auto-create deep paths in 8.12

* Apply review comments.

Co-authored-by: andy-stark-redis <[email protected]>

---------

Co-authored-by: andy-stark-redis <[email protected]>

* DEV: (cmds) docs for new INFO command streams section (#4274)

* DEV: (cmds) docs for new INFO command streams section

* Apply review comments.

Co-authored-by: andy-stark-redis <[email protected]>

---------

Co-authored-by: andy-stark-redis <[email protected]>

* OP: add docs for named TLS in 8.12 (#4289)

* Document native Roaring bitmaps for Redis 8.12 (#3715)

* Document native Roaring bitmaps

* Keep Roaring details in bitmap guide

* Target Roaring bitmap docs to Redis 8.12

* Clarify native bitmap replication docs

Signed-off-by: Antonio Viggiano <[email protected]>

* Document native bitmap integer arrays and benchmark methodology

* Clarify bitmap rank argument validation order

* Regenerate bitmap command references and clarify internal replay

* Document internal bitmap replay commands

* Document consolidated bitmap integer-array command

* Clarify the consolidated bitmap integer-array command

* Document bitmap range validation before key lookup

* Change warning format in bitmaps documentation

Updated warning syntax for Roaring bitmap creation instructions.

---------

Signed-off-by: Antonio Viggiano <[email protected]>
Co-authored-by: David Dougherty <[email protected]>

* DEV: update modules API page for 8.12 release (#4306)

* DEV: update modules API page for 8.12 release

* Apply batched suggestions from code review

Co-authored-by: mich-elle-luna <[email protected]>

---------

Co-authored-by: mich-elle-luna <[email protected]>

* Document BITRANGEINTARRAY offset ranges, ZEROS, and pagination (#4304)

* Document negative bitmap ranks and the shared range limit

* Document bitmap range validation after key lookup

* Document uncapped bitmap enumeration and range truncation

* Document conditional string reads for BITRANGEINTARRAY

* Document bitmap value selection, offset ranges, and LIMIT pagination

* Align BITRANGEINTARRAY docs with merged ZEROS syntax

* DEV: (cmds) docs for set member expiration in 8.12 (#4337)

* DEV: (cmds) docs for set member expiration in 8.12

* Apply changes from review.

* Apply changes from upstream merge commit

* DEV: add redis-8-12-commands.md page (#4421)

* DEV: add 8.12 what's new page (#4422)

* OP: update OSS version management page for 8.12 (#4423)

* DEV: update data/commands_core.json from 8.12 GA build (#4436)

* Remove 8.12 release notes; point to redis/redis repo

* Document atomic sorted-set moves and BYSCORE batch claims (#4522)

* Document sorted-set move batches and destination conditions

* Document positive COUNT validation for sorted-set moves

* Document the ZMOVEMEMBER MEMBERS block

* Clarify final BZMOVE behavior after core merge

* Add new sorted set cmds to summary page

* Update module API page

* Update what's new for features added in 8.12-rc3

* Add compat. info to new sorted set commands

* Modify ACL categories for two bless commands

* Update config page to point to 8.12 config

---------

Signed-off-by: Antonio Viggiano <[email protected]>
Co-authored-by: yinon-bit <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: mich-elle-luna <[email protected]>
Co-authored-by: andy-stark-redis <[email protected]>
Co-authored-by: Antonio Viggiano <[email protected]>
Co-authored-by: fcenedes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oss Redis Open Source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants