flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-8118) Allow to specify the offsets of KafkaTableSources
Date Thu, 23 Nov 2017 09:19:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-8118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264040#comment-16264040

ASF GitHub Bot commented on FLINK-8118:

GitHub user xccui opened a pull request:


    [FLINK-8118] [table] Allow specifying reading offsets of KafkaTableSources

    ## What is the purpose of the change
    This PR enables the kafka table source builder to specify start reading offsets for the
    ## Brief change log
      - Add offset specifying methods (reading from latest, earliest, group offsets and specified
offsets) to the builder.
      - Configure the offset option in a new `getKafkaConsumer` and change the old `getKafkaConsumer`
to `createKafkaConsumer`.
      - Add a related test and update the documents.
    ## Verifying this change
    The change can be verified by `KafkaTableSourceTestBase. testKafkaTSSetConsumeOffsets`.
    ## Does this pull request potentially affect one of the following parts:
      - Dependencies (does it add or upgrade a dependency): (no)
      - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no)
      - The serializers: (no)
      - The runtime per-record code paths (performance sensitive): (no)
      - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing,
Yarn/Mesos, ZooKeeper: (no)
      - The S3 file system connector: (no)
    ## Documentation
      - Does this pull request introduce a new feature? (yes)
      - If yes, how is the feature documented? (docs)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/xccui/flink FLINK-8118

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5056
commit 3fd22f85af170f20de4126abd5182abf29970ca8
Author: Xingcan Cui <xingcanc@gmail.com>
Date:   2017-11-22T16:00:39Z

    [FLINK-8118][table]Allow to specify the offsets of KafkaTableSources


> Allow to specify the offsets of KafkaTableSources
> -------------------------------------------------
>                 Key: FLINK-8118
>                 URL: https://issues.apache.org/jira/browse/FLINK-8118
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API & SQL
>    Affects Versions: 1.4.0
>            Reporter: Timo Walther
>            Assignee: Xingcan Cui
> Right now the Kafka TableSources can only read from the current group offset. We should
expose the possibilities of the Kafka Consumer:
> https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/connectors/kafka.html#kafka-consumers-start-position-configuration

This message was sent by Atlassian JIRA

View raw message