[
https://issues.apache.org/jira/browse/FLINK-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Metzger closed FLINK-879.
--------------------------------
Resolution: Won't Fix
> Allow empty result in cross function call
> -----------------------------------------
>
> Key: FLINK-879
> URL: https://issues.apache.org/jira/browse/FLINK-879
> Project: Flink
> Issue Type: Improvement
> Components: API / DataSet
> Reporter: GitHub Import
> Priority: Minor
> Labels: github-import
>
> It is somehow annoying that the CrossFunction Class enforces a result in
> cross.
> For example, if you have a set with data points and want to compute the
> distances, you properly don't want to compute the distance between the same
> point.
> The only workaround is a points.cross(points).with(...).filter(...) chain.
> The additional filter step produce much unnecessary java code.
> Simple fix:
> Remove the final flag from cross(in1, in2, out) in
> eu.stratosphere.api.java.functions.CrossFunction and override this instead of
> cross(in1, in2).
> ---------------- Imported from GitHub ----------------
> Url: https://github.com/stratosphere/stratosphere/issues/879
> Created by: [derSascha|https://github.com/derSascha]
> Labels: enhancement, java api, user satisfaction,
> Created at: Tue May 27 23:29:24 CEST 2014
> State: open
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)