[ 
https://issues.apache.org/jira/browse/SPARK-54888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-54888:
-----------------------------------
    Labels: pull-request-available  (was: )

> Allows non-determinism and correlation in VALUES clause
> -------------------------------------------------------
>
>                 Key: SPARK-54888
>                 URL: https://issues.apache.org/jira/browse/SPARK-54888
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.2.0
>            Reporter: Serge Rielau
>            Priority: Major
>              Labels: pull-request-available
>
> In the SQL Standard and other DBMS the expressions permitted in VALUES are 
> much less restrive than Spark. This ticket will fix that.
> - Allow non determinism in VALUES. E.g. allow inserting UUID
> {noformat}
> INSERT INTO T VALUES(uuid(), 1, 2, 3);{noformat}
> - Allow correlated columns in a VALUES. E.g. e.g. pivot style joins.
> {noformat}
> SELECT P.*
>   FROM sales AS S,
>        LATERAL(VALUES('q1', s.q1), (q2, s.q2)) AS p(quarter, sales) {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to