Skip to content

Commit

Permalink
stream-processing: getting-started: hands-on: add missing read_from_head
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Laguna <[email protected]>
  • Loading branch information
ecerulm committed Nov 24, 2023
1 parent d253400 commit 8b3bbc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stream-processing/getting-started/hands-on.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $ docker run -ti -v `pwd`/sp-samples-1k.log:/sp-samples-1k.log \
-i tail \
-p path=/sp-samples-1k.log \
-p parser=json \
-p read_from_head=true \
-p read_from_head=true \
-T "SELECT word, num FROM STREAM:tail.0 WHERE country='Chile';" \
-o null -f 1
```
Expand All @@ -99,6 +99,7 @@ $ docker run -ti -v `pwd`/sp-samples-1k.log:/sp-samples-1k.log \
-i tail \
-p path=/sp-samples-1k.log \
-p parser=json \
-p read_from_head=true \
-T "SELECT AVG(num) FROM STREAM:tail.0 WHERE country='Chile';" \
-o null -f 1
```
Expand Down Expand Up @@ -127,6 +128,7 @@ $ docker run -ti -v `pwd`/sp-samples-1k.log:/sp-samples-1k.log \
-i tail \
-p path=/sp-samples-1k.log \
-p parser=json \
-p read_from_head=true \
-T "SELECT country, AVG(num) FROM STREAM:tail.0 \
WINDOW TUMBLING (1 SECOND) \
WHERE country='Chile' \
Expand Down

0 comments on commit 8b3bbc5

Please sign in to comment.