Description
The query context contains just a part of fragment. The code below demonstrates the issue:
withSQLConf(SQLConf.ANSI_ENABLED.key -> "true") { val e = intercept[SparkArithmeticException] { sql("select 1 / 0").collect() } println("'" + e.getQueryContext()(0).fragment() + "'") } '1 / '