Click to copy
Working With Topics • Reviewed for ksqlDB 0.29
How to Query a Topic from the Beginning in ksqlDB
By default, PRINT
statements consume messages that were produced after you submitted the command. To read from the beginning of the topic, add FROM BEGINNING
:
PRINT 'topicName' FROM BEGINNING;
Remember to quote the topic name if it has dots or dashes in it.
Was this article helpful?