You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mihailo Aleksic (Jira)" <ji...@apache.org> on 2025/04/14 15:59:00 UTC

[jira] [Updated] (SPARK-51796) Disable Sort order expressions under non-Sort operators

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

Mihailo Aleksic updated SPARK-51796:
------------------------------------
    Description: 
Sort order expressions shouldn't be found under operators besides Sort (ORDER BY).
For example following Dataframe program throws an internal error instead of an user facing one:


{code:java}
val df = sql("SELECT 1 AS name")
df.select(desc("name"))
{code}

I propose that we fix it by throwing a proper user facing error.

  was:
Sort order expressions shouldn't be found under operators besides Sort (ORDER BY).
For example following Dataframe program throws an internal error instead of an user facing one:



> Disable Sort order expressions under non-Sort operators
> -------------------------------------------------------
>
>                 Key: SPARK-51796
>                 URL: https://issues.apache.org/jira/browse/SPARK-51796
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Mihailo Aleksic
>            Priority: Major
>
> Sort order expressions shouldn't be found under operators besides Sort (ORDER BY).
> For example following Dataframe program throws an internal error instead of an user facing one:
> {code:java}
> val df = sql("SELECT 1 AS name")
> df.select(desc("name"))
> {code}
> I propose that we fix it by throwing a proper user facing error.



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