You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Yuval Itzchakov <yu...@gmail.com> on 2019/09/13 15:49:12 UTC
Compound Keys Using Temporal Tables
Hi,
Given table X with an event time, A, B and C columns, is there a way to
pass a compound key, i.e. A and B as the primaryKey argument of
Table.createTemporalFunction? My attempts so far yield a runtime exception
where the String doesn't match a given regex.
Re: Compound Keys Using Temporal Tables
Posted by Fabian Hueske <fh...@gmail.com>.
Hi,
No, this is not possible at the moment. You can only pass a single
expression as primary key.
A work around might be to put the two fields in a nested field (haven't
tried if this works) or combine them in a single attribute, for example by
casting them to VARCHAR and concating them.
Best, Fabian
Am Fr., 13. Sept. 2019 um 17:49 Uhr schrieb Yuval Itzchakov <
yuvalos@gmail.com>:
> Hi,
>
> Given table X with an event time, A, B and C columns, is there a way to
> pass a compound key, i.e. A and B as the primaryKey argument of
> Table.createTemporalFunction? My attempts so far yield a runtime exception
> where the String doesn't match a given regex.
>