Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29198

Thriftserver throw different exceptions when disabling spark.sql.hive.thriftServer.async

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • SQL
    • None

    Description

      How to reproduce:

      test("Verify thriftserver exceptions") {
        withJdbcStatement() {statement =>
          statement.executeQuery("set spark.sql.hive.thriftServer.async=true")
          Thread.sleep(1000)
      
          intercept[SQLException] {
            statement.executeQuery("SELECT * from not-exist")
          }
      
          statement.executeQuery("set spark.sql.hive.thriftServer.async=false")
          Thread.sleep(1000)
      
          intercept[org.apache.hive.service.cli.HiveSQLException] {
            statement.executeQuery("SELECT * from not-exist")
          }
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: