[
https://issues.apache.org/jira/browse/FLINK-9565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16509306#comment-16509306
]
Fabian Hueske commented on FLINK-9565:
--------------------------------------
One option to add such a feature could be to provide an annotation
{{@Expensive}} for {{ScalarFunction}}. When the code generator sees more than
one expensive function, it could run them concurrently in different threads and
return the result after the last function completed.
> Evaluating scalar UDFs in parallel
> ----------------------------------
>
> Key: FLINK-9565
> URL: https://issues.apache.org/jira/browse/FLINK-9565
> Project: Flink
> Issue Type: New Feature
> Components: Table API & SQL
> Affects Versions: 1.4.2
> Reporter: yinhua.dai
> Priority: Major
>
> As per
> [https://stackoverflow.com/questions/50790023/does-flink-sql-support-to-run-projections-in-parallel,]
> scalar UDF in the same SQL is always evaluated sequentially even when those
> UDF are irrelevant, it may increase latency when the UDF is time consuming
> function.
> It would be great if Flink SQL can support to run those UDF in parallel to
> reduce calculation latency.
>
> cc [~fhueske]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)