Conversation
lavkesh
reviewed
Sep 21, 2022
lavkesh
reviewed
Sep 21, 2022
lavkesh
reviewed
Sep 21, 2022
lavkesh
reviewed
Sep 21, 2022
| # Redis Sink | ||
|
|
||
| ### Input Schema | ||
| Redis sink in Depot only supports Protobuf and JSON schema as of now. Support for Avro format is planned for a future release of Depot. |
Member
There was a problem hiding this comment.
we don't need to put formats here.
because it's a not part of sink. It is independent. Once we have parsers, all the sinks will support the format and no code change will be needed
lavkesh
reviewed
Sep 21, 2022
| ### Data Types | ||
| Redis sink can be created in 3 different modes based on the value of [`SINK_REDIS_DATA_TYPE`](../reference/configuration/redis.md#sink_redis_data_type): HashSet, KeyValue or List | ||
| - `Hashset`: For each message, an entry of the format `key : field : value` is generated and pushed to Redis. Field and value are generated on the basis of the config [`SINK_REDIS_HASHSET_FIELD_TO_COLUMN_MAPPING`](../reference/configuration/redis.md#sink_redis_hashset_field_to_column_mapping) | ||
| - `List`: For each message entry of the format `key : value` is generated and pushed to Redis. Value is fetched for the proto index provided in the config [`SINK_REDIS_LIST_DATA_PROTO_INDEX`](../reference/configuration/redis.md#sink_redis_list_data_proto_index) or the Proto field name provided in the config [`SINK_REDIS_LIST_DATA_FIELD_NAME`](../reference/configuration/redis.md#sink_redis_list_data_field_name) |
Member
There was a problem hiding this comment.
ah. we need to delete SINK_REDIS_LIST_DATA_PROTO_INDEX it's not required.
Member
There was a problem hiding this comment.
SINK_REDIS_LIST_DATA_FIELD_NAME this is the config.
lavkesh
approved these changes
Sep 21, 2022
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.