XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

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

      Attachments

        Activity

          People

            maxgekk Max Gekk
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: