Re: Regarding the over window query support from Beam SQL

2021-03-11 Thread Tao Li
2021 at 1:37 PM To: "user@beam.apache.org" , Rui Wang Subject: Re: Regarding the over window query support from Beam SQL Hi Rui, Yes that’s the problem. The alias is not propagated to the final schema. Created https://issues.apache.org/jira/browse/BEAM-11930 Thanks! From: Rui W

Re: Regarding the over window query support from Beam SQL

2021-03-05 Thread Tao Li
iu...@apache.org>> Date: Tuesday, March 2, 2021 at 10:43 AM To: Tao Li mailto:t...@zillow.com>> Cc: "user@beam.apache.org<mailto:user@beam.apache.org>" mailto:user@beam.apache.org>> Subject: Re: Regarding the over window query support from Beam SQL Hi Tao, [1] contains wha

Re: Regarding the over window query support from Beam SQL

2021-03-05 Thread Rui Wang
*Tao Li > *Reply-To: *"user@beam.apache.org" > *Date: *Tuesday, March 2, 2021 at 3:37 PM > *To: *Rui Wang > *Cc: *"user@beam.apache.org" > *Subject: *Re: Regarding the over window query support from Beam SQL > > > > Hi Rui, > > > > Tha

Re: Regarding the over window query support from Beam SQL

2021-03-05 Thread Tao Li
ndow#0=[window(partition {0} order by [1] range between UNBOUNDED PRECEDING and CURRENT ROW aggs [RANK()])]) BeamIOSourceRel(table=[[beam, PCOLLECTION]]) From: Rui Wang Date: Tuesday, March 2, 2021 at 10:43 AM To: Tao Li Cc: "user@beam.apache.org" Subject: Re: Regarding the over

Re: Regarding the over window query support from Beam SQL

2021-03-02 Thread Tao Li
rder by [1] range between UNBOUNDED PRECEDING and CURRENT ROW aggs [RANK()])]) BeamIOSourceRel(table=[[beam, PCOLLECTION]]) From: Rui Wang Date: Tuesday, March 2, 2021 at 10:43 AM To: Tao Li Cc: "user@beam.apache.org" Subject: Re: Regarding the over window query support

Re: Regarding the over window query support from Beam SQL

2021-03-02 Thread Rui Wang
Hi Tao, [1] contains what functions are working with OVER clause. Rank is one of the functions that is supported. Can you take a look? [1]: https://github.com/apache/beam/blob/master/sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/BeamAnalyticFunctionsTest.java -Rui O

Re: Regarding the over window query support from Beam SQL

2021-03-02 Thread Tao Li
+ Rui Wang. Looks like Rui has been working on this jira. From: Tao Li Date: Monday, March 1, 2021 at 9:51 PM To: "user@beam.apache.org" Subject: Regarding the over window query support from Beam SQL Hi Beam community, Querying over a window for ranking etc is pretty common in SQL use cases.