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

redis sink: complex protobuf data type values not getting synced properly #61

Open
kevinbheda opened this issue Nov 17, 2022 · 0 comments
Assignees
Labels
bug Something isn't working redis-sink

Comments

@kevinbheda
Copy link
Contributor

Description
redis sink: complex protobuf data type values not getting synced properly
Steps To Reproduce

  1. REDIS SINK
  2. With config INPUT_SCHEMA_PROTO_TO_COLUMN_MAPPING: {"2":"topics"}
  3. With config SINK_REDIS_KEY_TEMPLATE: patch-subscription:%s,customer_name
  4. With protobuf message as
  5. message TestBookingLogMessage { string customer_name = 1; message TopicMetadata { string topic = 1; int32 qos = 2; } repeated TopicMetadata topics = 2;

Expected behavior
""[{"topic":"world/pns/1/com.hello.owl/701483858/3ac6a577fbd334b4","qos":1}]""

Additional context
"[topic: "world/pns/1/com.hello.owl/701483858/3ac6a577fbd334b4"\nqos: 1\n]"

Proposed Fix.
Use JsonPrinter in ProtoOdpfParsedMessage.getFieldByName()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working redis-sink
Projects
None yet
Development

No branches or pull requests

1 participant