[
https://issues.apache.org/jira/browse/FLINK-15475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot closed FLINK-15475.
----------------------------------
Resolution: Auto Closed
This issue was labeled "stale-minor" 7 ago and has not received any updates so
I have gone ahead and closed it. If you are still affected by this or would
like to raise the priority of this ticket please re-open, removing the label
"auto-closed" and raise the ticket priority accordingly.
> Add isOutputTypeUsed() API to Transformation
> --------------------------------------------
>
> Key: FLINK-15475
> URL: https://issues.apache.org/jira/browse/FLINK-15475
> Project: Flink
> Issue Type: Improvement
> Components: API / Core, API / DataSet, API / DataStream
> Reporter: Rong Rong
> Assignee: Rong Rong
> Priority: Minor
> Labels: auto-closed, stale-assigned
>
> Currently there's no way to "peek" into a `Transformation` object and see if
> `typeUsed` has been set or not. The only way is to invoke the `setOutputType`
> API and wrap around it with a try-catch block similar to:
> {code:java}
> try {
> (SingleOutputStreamOperator)dataStream
> .returns(myOutputType);
> } catch (ValidationException ex) {
> // ... handle exception when type has been used.
> }
> {code}
> It would be nice if we have a `isTypeUsed()` or `isOutputTypeUsed()` API to
> check whether a particular transformation has a definitive output type set /
> used or not.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)