Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-28454

Fix the wrong timestamp example of KafkaSource

    XMLWordPrintableJSON

Details

    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.

       

       

       

      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

       

       

       

       

       

      Attachments

        1. image-2022-07-08-13-46-05-540.png
          78 kB
          Rui Fan
        2. image-2022-07-08-13-43-14-278.png
          339 kB
          Rui Fan
        3. image-2022-07-08-13-42-49-902.png
          344 kB
          Rui Fan
        4. image-2022-07-08-13-04-59-993.png
          108 kB
          Rui Fan

        Issue Links

          Activity

            People

              fanrui Rui Fan
              fanrui Rui Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: