Re:Re: FlatMap returning Row<> based on ArrayList elements()

2019-08-07 Thread Haibo Sun
register the table when the number of elements/columns and data types are both nondeterministic. Correct me if I misunderstood your meaning. Best, Victor From: Andres Angel Date: Wednesday, August 7, 2019 at 9:55 PM To: Haibo Sun Cc: user Subject: Re: FlatMap returning Row<&

Re: FlatMap returning Row<> based on ArrayList elements()

2019-08-07 Thread Andres Angel
rstood your meaning. > > > > Best, > > Victor > > > > *From: *Andres Angel > *Date: *Wednesday, August 7, 2019 at 9:55 PM > *To: *Haibo Sun > *Cc: *user > *Subject: *Re: FlatMap returning Row<> based on ArrayList elements() > > > > He

Re: FlatMap returning Row<> based on ArrayList elements()

2019-08-07 Thread Victor Wong
Angel Date: Wednesday, August 7, 2019 at 9:55 PM To: Haibo Sun Cc: user Subject: Re: FlatMap returning Row<> based on ArrayList elements() Hello everyone, let me be more precis on what I'm looking for at the end because your example is right and very accurate in the way about how t

Re: FlatMap returning Row<> based on ArrayList elements()

2019-08-07 Thread Andres Angel
Hello everyone, let me be more precis on what I'm looking for at the end because your example is right and very accurate in the way about how to turn an array into a Row() object. I have done it seamlessly: out.collect(Row.of(pelements.toArray())); Then I printed and the outcome is as expected:

FlatMap returning Row<> based on ArrayList elements()

2019-07-29 Thread Andres Angel
Hello everyone, I need to parse into an anonymous function an input data to turn it into several Row elements. Originally I would have done something like Row.of(1,2,3,4) but these elements can change on the flight as part of my function. This is why I have decided to store them in a list and