[
https://issues.apache.org/jira/browse/FLINK-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047624#comment-14047624
]
Till Rohrmann commented on FLINK-990:
-------------------------------------
Good point. I'll add it for addCardinality as well.
You're right, it's more like a temporary fix until the Scala API has been moved
to the non-Record based operators. It would make things considerably easier to
maintain if they were using the same utility functions. We could probably reuse
the OperatorTranslation functionality, which, among others, sets the semantics
properties after the Operator plan has been created.
> Scala API: Compiler Hints are not forwarded
> -------------------------------------------
>
> Key: FLINK-990
> URL: https://issues.apache.org/jira/browse/FLINK-990
> Project: Flink
> Issue Type: Bug
> Reporter: Till Rohrmann
> Assignee: Till Rohrmann
>
> The Scala API contains functions such as preserve, observe, neglect,
> uniqueKey etc. which can be used to specify compiler hints. However, they are
> not forwarded to the compiler. Thus an operation:
> DataSet[A] ds = input.map{ x=> x}
> ds.preserve(x=>x, y=>y)
> which should say that the fields stay constant, does not have an effect.
--
This message was sent by Atlassian JIRA
(v6.2#6252)