[ https://issues.apache.org/jira/browse/SPARK-40136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk resolved SPARK-40136. ------------------------------ Fix Version/s: 3.4.0 Resolution: Fixed Issue resolved by pull request 37566 [https://github.com/apache/spark/pull/37566] > 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 > Fix For: 3.4.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org