Yuming Wang created SPARK-49604:
-----------------------------------

             Summary: GROUP_BY_POS_OUT_OF_RANGE if group by Literal
                 Key: SPARK-49604
                 URL: https://issues.apache.org/jira/browse/SPARK-49604
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.5.3
            Reporter: Yuming Wang



{noformat}
spark-sql (default)> create table t1(id int);
spark-sql (default)> create table t2 as select id, -1 as x from t1 group by id, 
x;
[GROUP_BY_POS_OUT_OF_RANGE] GROUP BY position -1 is not in select list (valid 
range is [1, 2]).; line 1 pos 30
{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