Python: adds JSON.ARRLEN command#2403
Merged
shohamazon merged 2 commits intorelease-1.2from Oct 10, 2024
Merged
Conversation
shohamazon
commented
Oct 9, 2024
| For JSONPath (`path` starts with `$`): | ||
| Returns a list of integer replies for every possible path, indicating the length of the array, | ||
| or None for JSON values matching the path that are not an array. | ||
| If `path` doen't exist, an empty array will be returned. |
Collaborator
Author
There was a problem hiding this comment.
Suggested change
| If `path` doen't exist, an empty array will be returned. | |
| If `path` doesn't exist, an empty array will be returned. |
shohamazon
commented
Oct 9, 2024
Yury-Fridlyand
approved these changes
Oct 9, 2024
| assert await json.arrlen(glide_client, key, "$..a") == [3, 2, None] | ||
|
|
||
| # Legacy path retrieves the first array match at ..a | ||
| assert await json.arrlen(glide_client, key, "..a") == 3 |
| """ | ||
| Retrieves the length of the array at the specified `path` within the JSON document stored at `key`. | ||
|
|
||
| See https://valkey.io/commands/json.arrlen/ for more details. |
There was a problem hiding this comment.
Remove the link. We can add valid links later once docs published
Collaborator
Author
There was a problem hiding this comment.
Yeah, I will remove them all
Collaborator
Author
Thanks, I'm adding it in the end because changelog is edited quite often so there are lots of conflicts |
72db417 to
99b3635
Compare
99b3635 to
eb01dc8
Compare
Signed-off-by: Shoham Elias <shohame@amazon.com>
eb01dc8 to
510247f
Compare
shohamazon
commented
Oct 10, 2024
shohamazon
commented
Oct 10, 2024
shohamazon
commented
Oct 10, 2024
Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
cyip10
pushed a commit
that referenced
this pull request
Oct 11, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: Chloe <chloe.yip@improving.com>
mo-amzn
pushed a commit
that referenced
this pull request
Oct 14, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
mo-amzn
pushed a commit
to mo-amzn/valkey-glide
that referenced
this pull request
Oct 15, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: Muhammad Awawdi <Mawawdi@amazon.com>
avifenesh
pushed a commit
to avifenesh/valkey-glide
that referenced
this pull request
Oct 21, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
pushed a commit
to avifenesh/valkey-glide
that referenced
this pull request
Oct 21, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
pushed a commit
that referenced
this pull request
Oct 22, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
pushed a commit
to avifenesh/valkey-glide
that referenced
this pull request
Oct 22, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com>
avifenesh
pushed a commit
that referenced
this pull request
Oct 22, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com>
mo-amzn
pushed a commit
to mo-amzn/valkey-glide
that referenced
this pull request
Oct 22, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
pushed a commit
that referenced
this pull request
Oct 22, 2024
--------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com>
avifenesh
added a commit
that referenced
this pull request
Oct 22, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
added a commit
to avifenesh/valkey-glide
that referenced
this pull request
Nov 3, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (valkey-io#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (valkey-io#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
added a commit
to avifenesh/valkey-glide
that referenced
this pull request
Nov 3, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (valkey-io#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (valkey-io#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
added a commit
to avifenesh/valkey-glide
that referenced
this pull request
Nov 3, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (valkey-io#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (valkey-io#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
added a commit
to avifenesh/valkey-glide
that referenced
this pull request
Nov 5, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (valkey-io#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (valkey-io#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
added a commit
to avifenesh/valkey-glide
that referenced
this pull request
Nov 5, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (valkey-io#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (valkey-io#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
added a commit
to avifenesh/valkey-glide
that referenced
this pull request
Nov 5, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (valkey-io#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (valkey-io#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
avifenesh
added a commit
that referenced
this pull request
Nov 5, 2024
* Update README.md nodejs platform support (#2397) * Update README.md Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> * Update README.md - lint fix Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> * Update README.md ling Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> * Update node/README.md Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com> Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> --------- Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com> * CI - Minimal and full CI matrix impl (#2051) * CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> * CI - Minimal and full CI matrix impl (#2051) * CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> * CI - Minimal and full CI matrix impl (#2051) * CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> * Fix for - Minimal and full CI matrix impl #2051 (#2500) * Refactor tests to use async cleanup and improve error handling Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Enhance Jest configuration and add test setup file; update build scripts and dependencies Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Update devDependencies in package.json for hybrid-node-tests to latest versions Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Enhance test utilities and command tests with improved wait logic and version checks Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Refactor tests to assert expected replica reads are less than or equal to actual reads; update connection handling in utilities and allow unused imports in types Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Update dependencies and enhance PyO3 bindings; add new features and improve type handling Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Update GitHub workflows: enhance linting configurations, adjust engine version requirements, and remove obsolete Redis installation workflow Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> * fixes for CI (#2552) Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Refactor CI configuration for consistency and clarity Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Refactor CI configuration for consistency and clarity Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: Avi Fenesh <55848801+avifenesh@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
acarbonetto
pushed a commit
that referenced
this pull request
Nov 5, 2024
* CI - Minimal and full CI matrix impl Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Fix mypy failing (#2453) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> * Python: adds JSON.ARRLEN command (#2403) --------- Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: avifenesh <aviarchi1994@gmail.com> --------- Signed-off-by: avifenesh <aviarchi1994@gmail.com> Signed-off-by: Shoham Elias <shohame@amazon.com> Signed-off-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.