Hi Flavio,
Do you have an exapmple? The DistinctOperator should return a typed output
just like all the other operators do.
Best,
Max
On Fri, Apr 17, 2015 at 10:07 AM, Flavio Pompermaier pomperma...@okkam.it
wrote:
Hi guys,
I'm trying to make (in Java) a project().distinct() but then I
Hi guys,
I'm trying to make (in Java) a project().distinct() but then I cannot
create the generated dataset with a typed tuple because the distinct
operator returns just an untyped Tuple.
Is this an error in the APIs or am I doing something wrong?
Best,
Flavio
That worked like a charm!
Thanks a lot Fabian!
On Fri, Apr 17, 2015 at 12:37 PM, Fabian Hueske fhue...@gmail.com wrote:
The problem is cause by the project() operator.
The Java compiler does infer its return type and defaults to Tuple.
You can help the compiler like this: