Re: distinct() Java API

2015-04-17 Thread Maximilian Michels
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

distinct() Java API

2015-04-17 Thread Flavio Pompermaier
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

Re: distinct() Java API

2015-04-17 Thread Flavio Pompermaier
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: