spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kent Yao (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-29663) Support sum with interval type values
Date Wed, 30 Oct 2019 16:20:00 GMT
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


Mime
View raw message