[jira] [Created] (FLINK-17445) Allow OperatorTransformation to bootstrapWith a Scala DataSet

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-17445) Allow OperatorTransformation to bootstrapWith a Scala DataSet

Shang Yuanchun (Jira)
Brandon Bevans created FLINK-17445:
--------------------------------------

             Summary: Allow OperatorTransformation to bootstrapWith a Scala DataSet
                 Key: FLINK-17445
                 URL: https://issues.apache.org/jira/browse/FLINK-17445
             Project: Flink
          Issue Type: Improvement
          Components: API / State Processor
    Affects Versions: 1.10.0, 1.11.0
            Reporter: Brandon Bevans


Currently there is no way to use OperatorTransformation.bootstrapWith using a Scala DataSet. The functionality does seem to be there since a Scala DataSet appears to just be a wrapped Java DataSet. This functionality could be achieved with minimal invasiveness by passing through the underlying Java DataSet to the call.

 

Also, the docs suggest that this function should work:

From [https://ci.apache.org/projects/flink/flink-docs-stable/dev/libs/state_processor_api.html]:
{code:java}
val currencyDataSet = bEnv.fromCollection(CurrencyRate("USD", 1.0), CurrencyRate("EUR", 1.3)) val broadcastTransformation = OperatorTransformation .bootstrapWith(currencyDataSet) .transform(new CurrencyBootstrapFunction){code}
I would love to take this issue on.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)