[
https://issues.apache.org/jira/browse/BEAM-13159?focusedWorklogId=695296&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-695296
]
ASF GitHub Bot logged work on BEAM-13159:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Dec/21 19:21
Start Date: 13/Dec/21 19:21
Worklog Time Spent: 10m
Work Description: mosche commented on a change in pull request #15858:
URL: https://github.com/apache/beam/pull/15858#discussion_r768050109
##########
File path:
sdks/java/io/redis/src/test/java/org/apache/beam/sdk/io/redis/RedisIOTest.java
##########
@@ -250,6 +263,72 @@ public void testWriteUsingDECRBY() {
assertEquals(-1, count);
}
+ @Test
+ public void testWriteStreams() {
+
+ /* test data is 10 keys (stream IDs), each with two entries, each entry
having one k/v pair of data */
+ List<String> redisKeys =
+ IntStream.range(0, 9).boxed().map(idx ->
UUID.randomUUID().toString()).collect(toList());
Review comment:
Just fyi, start is inclusive here but end is exclusive 🤷♂️ not a very
consistent api...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 695296)
Time Spent: 11h (was: 10h 50m)
> Support for Redis 5.0 streams (XADD/XREAD/XRANGE) in RedisIO
> ------------------------------------------------------------
>
> Key: BEAM-13159
> URL: https://issues.apache.org/jira/browse/BEAM-13159
> Project: Beam
> Issue Type: New Feature
> Components: io-java-redis
> Reporter: N. M.
> Assignee: N. M.
> Priority: P2
> Time Spent: 11h
> Remaining Estimate: 0h
>
> Redis 5.0 and later support an append-only log data structure called a
> "stream" -- each element has a unique incrementing ID and contains one or
> more string:string key-value pairs.
> This seems like a gimme for a stream processing platform to support, and in
> fact Jedis already has support for XADD/XREAD/XRANGE in it, but the current
> redisIO Read and Write classes only support pcollections of single KVs and
> thus will need some additional work to support streams.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)