You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2022/08/18 07:38:00 UTC
[jira] [Created] (SPARK-40136) Incorrect fragment of query context
Max Gekk created SPARK-40136:
--------------------------------
Summary: 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
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