[
https://issues.apache.org/jira/browse/FLINK-33286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Fedulov updated FLINK-33286:
--------------------------------------
Description:
Currently, DataGeneratorSource requires both GeneratorFunction<Long, OUT> and
TypeInformation<OUT> to be passed during its construction. Given that the
generator function has a fixed API, it should be possible to reliably extract
the OUT type automatically for both generator functions passed both as lambda
and as objects.
was:
Currently, DataGeneratorSource requires both GeneratorFunction<Long, OUT> and
TypeInformation<OUT> to be passed during its construction. Given that the
generator function has a fixed API, it should be possible to reliably extract
the OUT type automatically for both lambda generator functions and for objects.
> DataGeneratorSource should support automatic return type detection
> ------------------------------------------------------------------
>
> Key: FLINK-33286
> URL: https://issues.apache.org/jira/browse/FLINK-33286
> Project: Flink
> Issue Type: Improvement
> Affects Versions: 1.17.1
> Reporter: Alexander Fedulov
> Assignee: Alexander Fedulov
> Priority: Major
>
> Currently, DataGeneratorSource requires both GeneratorFunction<Long, OUT> and
> TypeInformation<OUT> to be passed during its construction. Given that the
> generator function has a fixed API, it should be possible to reliably extract
> the OUT type automatically for both generator functions passed both as lambda
> and as objects.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)