elon_X created FLINK-35632:
------------------------------
Summary: The example provided in the kafkaSource documentation
for topic regex subscription is incorrect
Key: FLINK-35632
URL: https://issues.apache.org/jira/browse/FLINK-35632
Project: Flink
Issue Type: Improvement
Components: Documentation
Affects Versions: 1.20.0
Reporter: elon_X
Attachments: image-2024-06-18-17-47-53-525.png,
image-2024-06-18-17-48-38-080.png
[https://nightlies.apache.org/flink/flink-docs-release-1.20/docs/connectors/datastream/kafka/#topic-partition-subscription]
The example provided in the document has issues and will result in a
compilation error. The correct example should be:
{code:java}
// code placeholder
KafkaSource.builder().setTopicPattern(Pattern.compile("topic.*")) {code}
!image-2024-06-18-17-47-53-525.png!
!image-2024-06-18-17-48-38-080.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)