[
https://issues.apache.org/jira/browse/SPARK-28296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Toth updated SPARK-28296:
-------------------------------
Description:
These are valid queries in PostgreSQL, but they don't work in Spark SQL:
{noformat}
values ((select 1));
values ((select c from test1));
select (values(c)) from test10;
with cte(foo) as ( values(42) ) values((select foo from cte));
{noformat}
where test1 and test10:
{noformat}
CREATE TABLE test1 (c INTEGER);
INSERT INTO test1 VALUES(1);
CREATE TABLE test10 (c INTEGER);
INSERT INTO test SELECT generate_sequence(1, 10);
{noformat}
was:
These are valid queries in PostgreSQL, but they don't work in Spark SQL:
{noformat}
values ((select 1));
values ((select c from test1));
select (values(c)) from test10;
with cte(foo) as ( values(42) ) values((select foo from cte));
{noformat}
where test1 and test10:
{noformat}
CREATE TABLE test1 (c INTEGER);
INSERT INTO test VALUES(1);
CREATE TABLE test10 (c INTEGER);
INSERT INTO test SELECT generate_sequence(1, 10);
{noformat}
> Improved VALUES support
> -----------------------
>
> Key: SPARK-28296
> URL: https://issues.apache.org/jira/browse/SPARK-28296
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Peter Toth
> Priority: Major
>
> These are valid queries in PostgreSQL, but they don't work in Spark SQL:
> {noformat}
> values ((select 1));
> values ((select c from test1));
> select (values(c)) from test10;
> with cte(foo) as ( values(42) ) values((select foo from cte));
> {noformat}
> where test1 and test10:
> {noformat}
> CREATE TABLE test1 (c INTEGER);
> INSERT INTO test1 VALUES(1);
> CREATE TABLE test10 (c INTEGER);
> INSERT INTO test SELECT generate_sequence(1, 10);
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]