jiaan.geng created SPARK-33125:
----------------------------------

             Summary: Improve the error when Lead and Lag are not allowed to 
specify window frame
                 Key: SPARK-33125
                 URL: https://issues.apache.org/jira/browse/SPARK-33125
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.1.0
            Reporter: jiaan.geng


Except for Postgresql, other data sources (for example: vertica, oracle, 
redshift, mysql, presto) are not allowed to specify window frame for the Lead 
and Lag functions.
But the current error message is not clear enough.

{code:java}
Window Frame $f must match the required frame
{code}

The following error message is better.
{code:java}
Cannot specify window frame for lead function
{code}




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to