Skip to content

DEV: add RESP2/3 return information to the t-digest commands - #1754

Merged
dwdougherty merged 2 commits into
mainfrom
DOC-5322
Jun 24, 2025
Merged

dwdougherty merged 2 commits into
mainfrom
DOC-5322

Conversation

@dwdougherty

@dwdougherty dwdougherty commented Jun 24, 2025 •

Copy link
Copy Markdown
Collaborator

DOC-5322

The return info is at the bottom of each page.

@dwdougherty
dwdougherty requested a review from a team June 24, 2025 22:08
@dwdougherty dwdougherty self-assigned this Jun 24, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Staging links:
https://redis.io/docs/staging/DOC-5322/commands/tdigest.add
https://redis.io/docs/staging/DOC-5322/commands/tdigest.byrank
https://redis.io/docs/staging/DOC-5322/commands/tdigest.byrevrank
https://redis.io/docs/staging/DOC-5322/commands/tdigest.cdf
https://redis.io/docs/staging/DOC-5322/commands/tdigest.create
https://redis.io/docs/staging/DOC-5322/commands/tdigest.info
https://redis.io/docs/staging/DOC-5322/commands/tdigest.max
https://redis.io/docs/staging/DOC-5322/commands/tdigest.merge
https://redis.io/docs/staging/DOC-5322/commands/tdigest.min
https://redis.io/docs/staging/DOC-5322/commands/tdigest.quantile
https://redis.io/docs/staging/DOC-5322/commands/tdigest.rank
https://redis.io/docs/staging/DOC-5322/commands/tdigest.reset
https://redis.io/docs/staging/DOC-5322/commands/tdigest.revrank
https://redis.io/docs/staging/DOC-5322/commands/tdigest.trimmed_mean

@mich-elle-luna mich-elle-luna 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! just one missing space

Comment thread content/commands/tdigest.cdf.md Resolved
Co-authored-by: mich-elle-luna <[email protected]>
@dwdougherty

Copy link
Copy Markdown
Collaborator Author

Thank you, @mich-elle-luna!

@dwdougherty
dwdougherty merged commit afc088e into main Jun 24, 2025
@dwdougherty
dwdougherty deleted the DOC-5322 branch June 24, 2025 22:48
andy-stark-redis added a commit that referenced this pull request Nov 23, 2026
Adds data/command-api-mapping/ entries for BITRANGEINTARRAY, SADDEX,
SEXPIRE, SPEXPIRE, SEXPIREAT, SPEXPIREAT, STTL, SPTTL, SEXPIRETIME,
SPEXPIRETIME, SPERSIST and BLESS SET/CLEAR/GET/SCAN (15 files), and
regenerates data/command-api-mapping.json (additions only).

Signatures were read from each client's default branch on 2026-11-10, not
from a release. None of these APIs is in a stable release yet, so this PR is
parked until the clients ship (see the park manifest).

Per-client state on 2026-11-10:
- redis_py: all 15 typed on master; in v8.2.0b1 except BITRANGEINTARRAY;
  none in v8.1.0 (latest stable).
- node_redis: all 15; only BLESS confirmed shipped (6.3.1, 6.4.0-beta.0).
- go-redis, redis_rb: all 15 on master, none in v9.23.0 / v6.0.0.
- php (predis): BLESS shipped in 3.7.1; set expiry on main only (#1749);
  BITRANGEINTARRAY only in open PR #1754, so it is NOT mapped.
- jedis: 14 on master (BLESS #4773, set expiry #4828), none in v8.1.0-beta2;
  BITRANGEINTARRAY only in open PR #4830, NOT mapped.
- lettuce: all 15 on main (BITRANGEINTARRAY #3992 merged 2026-11-09), none in
  a tag.
- nredisstack/SE.Redis and redis-rs: nothing on the default branch, so no
  entries. SE.Redis has the work on its 8.12 branch behind SER011.

Learned:
- The 2026-11-07 PR scan was already stale for lettuce and jedis; re-read the
  default branch rather than trusting the scan.
- git's default diff of the regenerated merged file shows ~44k changed lines
  for what is an 8.5k-line pure addition; check with `git diff --patience`.
- Several upstream tests gate these commands at 8.11.x while the commands ship
  in 8.12 (redis-py 8.11.240, predis 8.11.0); not a docs problem, but do not
  copy those gates.
- go-redis BlessScan is node-local (cursor), and node_redis BLESS SCAN returns
  a transformed {cursor, keys} object; descriptions are left empty.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis added a commit that referenced this pull request Nov 24, 2026
Adds a `bitrangeintarray` step to the `bitmap_tutorial` set for Python (new
dt_bitmap.py) and Go (new ExampleClient_bitrangeintarray), and wraps the
BITRANGEINTARRAY redis-cli block in bitmaps.md in a clients-example shortcode
limited to Python and Go with lang_filter. The redis-cli prompt prefix changes
from `redis>` to `>` inside the shortcode to match the other blocks on the page.

Parked: BITRANGEINTARRAY is on the default branch of redis-py (509306f) and
go-redis (9f33ff1) but in no release (redis-py v8.2.0b1 lacks it; go-redis
v9.23.0 lacks it). Static checks only: `go vet` against the go-redis master
clone and an import/signature check of redis.Redis.bitrangeintarray from a
redis-py master install. NOT run: no Redis 8.12 server was available (Docker
not running; local redis-server is 7.2.7), so the printed values are copied
from the server-authored redis-cli block on the same page.

Not covered yet: Jedis (#4830 open), predis (#1754 open), lettuce (#3992 merged
2026-11-09, no tag), redis-rb (merged, Ruby has no bitmap_tutorial source),
node-redis (BITRANGEINTARRAY in neither 6.3.1 nor 6.4.0-beta.0). Add each to
the lang_filter allowlist only when it ships.

Learned:
- bitmap_tutorial had no Python, Node.js or Ruby source at all; the Roaring
  section's existing `roaring` step is CLI-only. The new Python file contains
  only this step, so the Python tab appears only on this block.
- The step sets bitmap-default-roaring and resets it in REMOVE code, which the
  build strips; the harness must reset it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants