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

Takuya Ueshin updated SPARK-50602:
----------------------------------
    Description: 
{code:python}
>>> df = spark.range(10).transpose(sf.col("id") + 1)
Traceback (most recent call last):
...
py4j.protocol.Py4JJavaError: An error occurred while calling o40.transpose.
: org.apache.spark.SparkException: [INTERNAL_ERROR] Found the unresolved 
operator: 'UnresolvedTranspose [unresolvedalias((id#0L + cast(1 as bigint)))] 
SQLSTATE: XX000
...
{code}

It shouldn't show {{INTERNAL_ERROR}}.

> Transpose should show a proper error message when invalid index columns are 
> specified
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-50602
>                 URL: https://issues.apache.org/jira/browse/SPARK-50602
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Takuya Ueshin
>            Priority: Major
>
> {code:python}
> >>> df = spark.range(10).transpose(sf.col("id") + 1)
> Traceback (most recent call last):
> ...
> py4j.protocol.Py4JJavaError: An error occurred while calling o40.transpose.
> : org.apache.spark.SparkException: [INTERNAL_ERROR] Found the unresolved 
> operator: 'UnresolvedTranspose [unresolvedalias((id#0L + cast(1 as bigint)))] 
> SQLSTATE: XX000
> ...
> {code}
> It shouldn't show {{INTERNAL_ERROR}}.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to