You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/08/18 09:20:00 UTC

[jira] [Assigned] (SPARK-40136) Incorrect fragment of query context

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

Apache Spark reassigned SPARK-40136:
------------------------------------

    Assignee: Max Gekk  (was: Apache Spark)

> Incorrect fragment of query context
> -----------------------------------
>
>                 Key: SPARK-40136
>                 URL: https://issues.apache.org/jira/browse/SPARK-40136
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Assignee: Max Gekk
>            Priority: Major
>
> The query context contains just a part of fragment. The code below demonstrates the issue:
> {code:scala}
>     withSQLConf(SQLConf.ANSI_ENABLED.key -> "true") {
>       val e = intercept[SparkArithmeticException] {
>         sql("select 1 / 0").collect()
>       }
>       println("'" + e.getQueryContext()(0).fragment() + "'")
>     }
> '1 / '
> {code}



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