[ https://issues.apache.org/jira/browse/FLINK-28454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
fanrui updated FLINK-28454: --------------------------- Description: [https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/connectors/datastream/kafka/] The timestamp unit of startingOffset is second in kafkaSource doc, but it should be milliseconds. It will mislead flink users. !image-2022-07-08-13-04-59-993.png! It should be milliseconds, because the timestamp is used in OffsetSpec.fromTimestamp() , and the comment is : *@param timestamp in milliseconds* By the way, the timestamp is milliseconds in old source doc. link: [https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/connectors/datastream/kafka/#kafka-consumers-start-position-configuration] !image-2022-07-08-13-46-05-540.png! !image-2022-07-08-13-42-49-902.png|width=1103,height=970! !image-2022-07-08-13-43-14-278.png|width=697,height=692! was: [https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/connectors/datastream/kafka/] The timestamp unit of startingOffset is second in kafkaSource doc, but it should be milliseconds. It will mislead flink users. !image-2022-07-08-13-04-59-993.png! > Fix the wrong timestamp example of KafkaSource > ---------------------------------------------- > > Key: FLINK-28454 > URL: https://issues.apache.org/jira/browse/FLINK-28454 > Project: Flink > Issue Type: Bug > Components: Connectors / Kafka, Documentation > Affects Versions: 1.13.6, 1.14.5, 1.15.1 > Reporter: fanrui > Priority: Major > Labels: pull-request-available > Fix For: 1.16.0, 1.15.2 > > Attachments: image-2022-07-08-13-04-59-993.png, > image-2022-07-08-13-42-49-902.png, image-2022-07-08-13-43-14-278.png, > image-2022-07-08-13-46-05-540.png > > > [https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/connectors/datastream/kafka/] > > The timestamp unit of startingOffset is second in kafkaSource doc, but it > should be milliseconds. It will mislead flink users. > > !image-2022-07-08-13-04-59-993.png! > > > It should be milliseconds, because the timestamp is used in > OffsetSpec.fromTimestamp() , and the comment is : *@param timestamp in > milliseconds* > > By the way, the timestamp is milliseconds in old source doc. link: > [https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/connectors/datastream/kafka/#kafka-consumers-start-position-configuration] > > !image-2022-07-08-13-46-05-540.png! > > !image-2022-07-08-13-42-49-902.png|width=1103,height=970! > > !image-2022-07-08-13-43-14-278.png|width=697,height=692! > > -- This message was sent by Atlassian Jira (v8.20.10#820010)