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

[jira] [Created] (SPARK-29663) Support sum with interval type values

Kent Yao created SPARK-29663:
--------------------------------

             Summary: Support sum with interval type values
                 Key: SPARK-29663
                 URL: https://issues.apache.org/jira/browse/SPARK-29663
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Kent Yao


{code:sql}
postgres=# SELECT i, Sum(cast(v as interval)) OVER (ORDER BY i ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) FROM (VALUES(1,'1 sec'),(2,'2 sec'),(3,NULL),(4,NULL)) t(i,v); 
i | sum ---+---------- 
1 | 00:00:03 
2 | 00:00:02
3 | 
4 | 
(4 rows)
{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