beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <>
Subject [jira] [Commented] (BEAM-960) JdbcIO should infer coder when possible (such as via RowMapper)
Date Fri, 11 Nov 2016 06:01:04 GMT


Jean-Baptiste Onofré commented on BEAM-960:

Thanks [~kenn], it makes sense. I will do the improvement (I think we can consider as an improvement
more than a bug in Jira, right ?).

> JdbcIO should infer coder when possible (such as via RowMapper)
> ---------------------------------------------------------------
>                 Key: BEAM-960
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-extensions
>            Reporter: Kenneth Knowles
>            Assignee: Jean-Baptiste Onofré
> There are a few ways that we typically do this:
> # Inspect the static args of the class implementing {{RowMapper}} to determine the output
type, then consult the coder registry. This method is more limited and not lambda-friendly.
> # For the a "functional interface" version, like {{RowMapper}} that allows setting the
output type descriptor.
> # Also provide an abstract class-based version, for example accepting a {{SimpleFunction}}
that will automatically have a rich output type descriptor.

This message was sent by Atlassian JIRA

View raw message