Yuming Wang created SPARK-29198:
-----------------------------------

             Summary: Thriftserver throw different exceptions when disabling 
spark.sql.hive.thriftServer.async
                 Key: SPARK-29198
                 URL: https://issues.apache.org/jira/browse/SPARK-29198
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Yuming Wang


How to reproduce:
{code:scala}
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")
    }
  }
}
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to