confluentinc / confluentinc/kafka-tutorials
Mistake in PRINT statement on stream-stream join tutorial
- Dominant language
- Java
- Stars
- 39
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
In [this tutorial](https://kafka-tutorials.confluent.io/join-a-stream-to-a-stream/ksql.html#write-the-program-interactively-using-the-cli), there is a mistake in this PRINT statement:
```
PRINT SHIPPED_ORDERS FROM BEGINNING LIMIT 3;
```
The [PRINT](https://docs.ksqldb.io/en/latest/developer-guide/ksqldb-reference/print/#print) statement takes a topic as input, not a kstream. To use PRINT, the user would have to use the name of the derived topic, or an earlier step would have to use a `WITH kafka_topic = 'blah'` to set the topic name.
A better approach would probably be to use this instead:
```
SELECT * FROM SHIPPED_ORDERS EMIT CHANGES LIMIT 3;
```
Contributor guide
Assessment
This issue has not been assessed yet.