beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BEAM-1660) withCoder() error in JdbcIO JavaDoc example
Date Wed, 08 Mar 2017 23:44:38 GMT


ASF GitHub Bot commented on BEAM-1660:

GitHub user XuMingmin opened a pull request:

    BEAM-1660 withCoder() error in JdbcIO JavaDoc example

    Be sure to do all of the following to help us incorporate your contribution
    quickly and easily:
     - [ ] Make sure the PR title is formatted like:
       `[BEAM-<Jira issue #>] Description of pull request`
     - [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable
           Travis-CI on your fork and ensure the whole test matrix passes).
     - [ ] Replace `<Jira issue #>` in the title with the actual Jira issue
           number, if there is one.
     - [ ] If this contribution is large, please file an Apache
           [Individual Contributor License Agreement](

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

    $ git pull BEAM-1660

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 #2203
commit 82ad89e56cc4099d52ff9440255ec2b05f83a9c0
Author: mingmxu <>
Date:   2017-03-08T23:42:46Z

    update JavaDoc to ensure the examples runnable;


> withCoder() error in JdbcIO JavaDoc example
> -------------------------------------------
>                 Key: BEAM-1660
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-extensions
>    Affects Versions: 0.6.0
>            Reporter: Xu Mingmin
>            Assignee: Xu Mingmin
>            Priority: Minor
> Follow the JavaDoc of JdbcIO, job fails with exception:
> {code}
> Exception in thread "main" java.lang.IllegalStateException: requires a
coder to be set via withCoder(coder)
> 	at
> 	at$Read.validate(
> 	at$Read.validate(
> 	at org.apache.beam.sdk.Pipeline.applyInternal(
> 	at org.apache.beam.sdk.Pipeline.applyTransform(
> 	at org.apache.beam.sdk.values.PBegin.apply(
> 	at org.apache.beam.sdk.Pipeline.apply(
> {code}
> It requires a Coder provided by withCoder. Need to add it in the example.
> Other point is, does it really need to specify a Coder? Users should register it with
CoderRegistry I think.

This message was sent by Atlassian JIRA

View raw message