Skip to content

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

Merged
a-TODO-rov merged 1 commit into6.8.xfrom
issue-3506-6.8.x
Dec 4, 2025
Merged

Preserve null values when parsing SearchReplies (#3518)#3551
a-TODO-rov merged 1 commit into6.8.xfrom
issue-3506-6.8.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.

@a-TODO-rov a-TODO-rov added this to the 6.8.2.RELEASE milestone Dec 4, 2025
@a-TODO-rov a-TODO-rov added the type: bug A general bug label 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)
@a-TODO-rov a-TODO-rov merged commit d8706c4 into 6.8.x Dec 4, 2025
11 checks passed
@a-TODO-rov a-TODO-rov deleted the issue-3506-6.8.x branch December 4, 2025 11:50
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.

1 participant