spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shiva Sankari Perambalam (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-26962) Windows Function LEAD in Spark SQL is not fetching consistent results.
Date Thu, 21 Feb 2019 23:42:01 GMT
Shiva Sankari Perambalam created SPARK-26962:
------------------------------------------------

             Summary: Windows Function LEAD in Spark SQL is not fetching consistent results.
                 Key: SPARK-26962
                 URL: https://issues.apache.org/jira/browse/SPARK-26962
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.4.0
            Reporter: Shiva Sankari Perambalam


Using a Lead function on a DATETIME column is giving inconsistent results in Spark sql.
{code:java}
Lead(date) over (partition by id, code order by date){code}
where Date is DATETIME, id and code is a String.
{code:java}
val testdf1= sparkSession.sql(s""" select date, Lead(date) over (partition by id, code order
by date) as lead_date from <SOME_VIEW>"""){code}
The result set is sometimes having the same data as the date instead of the lead_date

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message