You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aljoscha Krettek (JIRA)" <ji...@apache.org> on 2017/07/11 09:00:02 UTC

[jira] [Commented] (FLINK-7142) Scala DataSet API ignores ResultTypeQueryable interface

    [ https://issues.apache.org/jira/browse/FLINK-7142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16081918#comment-16081918 ] 

Aljoscha Krettek commented on FLINK-7142:
-----------------------------------------

[~fhueske] I think it's a bug that the Scala API doesn't support that interface, yes.

> Scala DataSet API ignores ResultTypeQueryable interface
> -------------------------------------------------------
>
>                 Key: FLINK-7142
>                 URL: https://issues.apache.org/jira/browse/FLINK-7142
>             Project: Flink
>          Issue Type: Bug
>          Components: DataSet API, Scala API
>    Affects Versions: 1.3.1, 1.4.0
>            Reporter: Fabian Hueske
>
> The {{ResultTypeQueryable}} is used to specify the return type of user-defined functions. The Scala DataSet API ignores this interface. The only way to override the inferred type information is to use implicit values. However, the {{ResultTypeQueryable}} interface has the nice property that the return type is defined in the actual function, whereas implicit types are defined in the program, i.e., outside of the function.
> IMO, the Scala DataSet API should also support the {{ResultTypeQueryable}} interface.
> What do you think [~aljoscha], [~till.rohrmann]?
> Was it a conscious decision to only support implicit type definitions?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)