You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by Chenyang Tang <gt...@163.com> on 2020/09/17 03:19:14 UTC

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. 

Re:Re: random fetch

Posted by Chenyang Tang <gt...@163.com>.
Okey, sorry and thanks.

















At 2020-09-17 15:02:44, "Timo Walther" <tw...@apache.org> 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.
>> 

Re: random fetch

Posted by Timo Walther <tw...@apache.org>.
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.
>