beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Kirpichov (JIRA)" <>
Subject [jira] [Commented] (BEAM-2640) Introduce Create.ofProvider(ValueProvider)
Date Wed, 19 Jul 2017 18:43:00 GMT


Eugene Kirpichov commented on BEAM-2640:

Coder inference for this is complicated by the fact that ValueProvider does not expose a TypeDescriptor
for the value being provided. Even though it could. I'm gonna start with requiring to explicitly
provide a coder.

> Introduce Create.ofProvider(ValueProvider)
> ------------------------------------------
>                 Key: BEAM-2640
>                 URL:
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-core
>            Reporter: Eugene Kirpichov
>            Assignee: Eugene Kirpichov
> When you have a ValueProvider<T> that may or may not be accessible at construction
time, a common task is to wrap it into a single-element PCollection<T>. This is especially
common when migrating an IO connector that used something like Create.of(query) followed by
a ParDo, to having query be a ValueProvider.
> Currently this is done in an icky way (e.g.
> We should have a convenience helper for that.

This message was sent by Atlassian JIRA

View raw message