You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Serge Rielau (Jira)" <ji...@apache.org> on 2026/01/02 22:33:00 UTC

[jira] [Created] (SPARK-54888) Allows non-determinism and correlation in VALUES clause

Serge Rielau created SPARK-54888:
------------------------------------

             Summary: 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


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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org