random fetch

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

random fetch

唐晨阳
Hi:
As a user, i have a question:
How can i use Table API to get a part of resurt randomly
It seem i must use orderBy()  before fetch(), that will sort my data, it is not what i want.
Reply | Threaded
Open this post in threaded view
|

Re: random fetch

Timo Walther-2
Hi Chenyang,

we will relax this constraint in 1.12. The issue has alsready been
implemented: https://issues.apache.org/jira/browse/FLINK-18569

Until then, you can use SQL. It supports FETCH and LIMIT already without
ordering.

Btw please use the user@ mailing list for questions of this kind. Thanks.

Regards,
Timo

On 17.09.20 05:19, Chenyang Tang wrote:
> Hi:
> As a user, i have a question:
> How can i use Table API to get a part of resurt randomly
> It seem i must use orderBy()  before fetch(), that will sort my data, it is not what i want.
>

Reply | Threaded
Open this post in threaded view
|

Re:Re: random fetch

唐晨阳
Okey, sorry and thanks.

















At 2020-09-17 15:02:44, "Timo Walther" <[hidden email]> wrote:

>Hi Chenyang,
>
>we will relax this constraint in 1.12. The issue has alsready been
>implemented: https://issues.apache.org/jira/browse/FLINK-18569
>
>Until then, you can use SQL. It supports FETCH and LIMIT already without
>ordering.
>
>Btw please use the user@ mailing list for questions of this kind. Thanks.
>
>Regards,
>Timo
>
>On 17.09.20 05:19, Chenyang Tang wrote:
>> Hi:
>> As a user, i have a question:
>> How can i use Table API to get a part of resurt randomly
>> It seem i must use orderBy()  before fetch(), that will sort my data, it is not what i want.
>>