Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle hash commands such as HGETALL in redis processor #2597

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkysel
Copy link

@mkysel mkysel commented May 17, 2024

The crux of the reported issue was that https://github.com/benthosdev/benthos/blob/main/public/service/message.go#L262 requires an array of [string]any but the redis library returns [any]any which does not get processed right.

Once all the types are cast to string, it behaves as expected.

Added unit tests for HSet HGet and HGetAll.

All existing Redis unit tests pass.

Fixes #2282

@mkysel mkysel requested a review from Jeffail as a code owner May 17, 2024 18:46
Signed-off-by: Martin Kysel <code@martinkysel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redis processor fails with HGETALL
1 participant