Table API zipWithIndex

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Table API zipWithIndex

Flavio Pompermaier
Hi to all,
is there any plan to support the equivalent of DataSetUtils.zipWithIndex as a select expression in the Table API? is it possible to implement it as an UDF right now?

Best,
Flavio
Reply | Threaded
Open this post in threaded view
|

Re: Table API zipWithIndex

Timo Walther
Hi Flavio,

I guess you are looking for a unique identifier for rows, right?
Currently, this is not possible in Table API. There, we only support
UUID(). Once the Table API has been enhanced to be more interactive, we
might support such features.

Regards,
Timo

Am 01.02.19 um 11:16 schrieb Flavio Pompermaier:
> Hi to all,
> is there any plan to support the equivalent
> of DataSetUtils.zipWithIndex as a select expression in the Table API?
> is it possible to implement it as an UDF right now?
>
> Best,
> Flavio


Reply | Threaded
Open this post in threaded view
|

Re: Table API zipWithIndex

Flavio Pompermaier
Yes, I'm looking for a unique identifiers for rows (incremental unfotunately..)
Thanks Timo!

On Fri, Feb 1, 2019 at 3:50 PM Timo Walther <[hidden email]> wrote:
Hi Flavio,

I guess you are looking for a unique identifier for rows, right?
Currently, this is not possible in Table API. There, we only support
UUID(). Once the Table API has been enhanced to be more interactive, we
might support such features.

Regards,
Timo

Am 01.02.19 um 11:16 schrieb Flavio Pompermaier:
> Hi to all,
> is there any plan to support the equivalent
> of DataSetUtils.zipWithIndex as a select expression in the Table API?
> is it possible to implement it as an UDF right now?
>
> Best,
> Flavio