You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dylan Guedes (Jira)" <ji...@apache.org> on 2019/10/13 10:55:00 UTC

[jira] [Created] (SPARK-29451) Some queries with divisions in windows are failling in Thrift

Dylan Guedes created SPARK-29451:
------------------------------------

             Summary: Some queries with divisions in windows are failling in Thrift
                 Key: SPARK-29451
                 URL: https://issues.apache.org/jira/browse/SPARK-29451
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Dylan Guedes


Hello,
the following queries are not properly working on Thrift. The only difference between them and some other queries that works fine are the numeric divisions, I think.
{code:sql}
SELECT four, ten/4 as two,
sum(ten/4) over (partition by four order by ten/4 rows between unbounded preceding and current row),
last(ten/4) over (partition by four order by ten/4 rows between unbounded preceding and current row)
FROM (select distinct ten, four from tenk1) ss;
{code}

{code:sql}
SELECT four, ten/4 as two,
sum(ten/4) over (partition by four order by ten/4 range between unbounded preceding and current row),
last(ten/4) over (partition by four order by ten/4 range between unbounded preceding and current row)
FROM (select distinct ten, four from tenk1) ss;
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org