You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2017/10/14 17:01:04 UTC

[jira] [Updated] (FLINK-7691) Remove ClassTag in Scala DataSet API

     [ https://issues.apache.org/jira/browse/FLINK-7691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephan Ewen updated FLINK-7691:
--------------------------------
    Fix Version/s: 2.0.0

> Remove ClassTag in Scala DataSet API
> ------------------------------------
>
>                 Key: FLINK-7691
>                 URL: https://issues.apache.org/jira/browse/FLINK-7691
>             Project: Flink
>          Issue Type: Improvement
>          Components: DataSet API
>            Reporter: Timo Walther
>             Fix For: 2.0.0
>
>
> In the DataStream API a {{ClassTag}} is not required, which allows to pass {{TypeInformation}} manually if required. In the DataSet API most methods look like:
> {code}
> // DataSet API
> def fromElements[T: ClassTag : TypeInformation](data: T*): DataSet[T]
> // DataStream API
> def fromElements[T: TypeInformation](data: T*): DataStream[T]
> {code}
> I would propose to remove the ClassTag, if possible. This would make it easier e.g. to supply TypeInformation for the {{Row}} type. Or is there an easier way in Scala that I don't know?



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