You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Alexander Fedulov (Jira)" <ji...@apache.org> on 2023/10/16 21:25:00 UTC

[jira] [Created] (FLINK-33286) DataGeneratorSource should support automatic return type detection

Alexander Fedulov created FLINK-33286:
-----------------------------------------

             Summary: 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


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)