Skip to content

Preserve null values when parsing SearchReplies (#3518)#3553

Merged
a-TODO-rov merged 1 commit into7.0.xfrom
issue-3506-7.0.x
Dec 4, 2025
Merged

Preserve null values when parsing SearchReplies (#3518)#3553
a-TODO-rov merged 1 commit into7.0.xfrom
issue-3506-7.0.x

Conversation

@a-TODO-rov
Copy link
Copy Markdown
Contributor

@a-TODO-rov a-TODO-rov commented Dec 4, 2025

EncodedComplexOutput was skipping null values instead of passing them on. Then SearchReplyParser needs to store null values as they are and not try to decode them. This affected both RESP2 and RESP3 parsing.

Added two integration tests in RediSearchAggregateIntegrationTests to verify that nulls in JSON documents are parsed correctly.

(cherry picked from commit 0796a4e)

Make sure that:

  • You have read the contribution guidelines.
  • You have created a feature request first to discuss your contribution intent. Please reference the feature request ticket number in the pull request.
  • You applied code formatting rules using the mvn formatter:format target. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.

EncodedComplexOutput was skipping null values instead of passing them on. Then SearchReplyParser needs to store null values as they are and not try to decode them.
This affected both RESP2 and RESP3 parsing.

Added two integration tests in RediSearchAggregateIntegrationTests to verify that nulls in JSON documents are parsed correctly.

(cherry picked from commit 0796a4e)
@a-TODO-rov a-TODO-rov added this to the 7.0.1.RELEASE milestone Dec 4, 2025
@a-TODO-rov a-TODO-rov added the type: bug A general bug label Dec 4, 2025
@a-TODO-rov a-TODO-rov merged commit b260af6 into 7.0.x Dec 4, 2025
13 of 14 checks passed
@a-TODO-rov a-TODO-rov deleted the issue-3506-7.0.x branch December 4, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants