confluentinc / confluentinc/kafka-tutorials

Mistake in PRINT statement on stream-stream join tutorial

Open
#714 5 comments 0 reactions 0 assignees View on GitHub
enhancement UX
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.