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

Throw Exception if runHive(sql) failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.1.0
    • 3.0.0
    • SQL
    • None

    Description

      At present, HiveClientImpl.runHive will not throw an exception when it runs incorrectly, which will cause it to fail to feedback error information normally.
      Example

      spark.sql("add jar file:///tmp/test.jar")
      spark.sql("show databases").show()
      

      /tmp/test.jar doesn't exist, thus add jar is failed. However this code will run completely without causing application failure.

      Attachments

        Issue Links

          Activity

            People

              Jackey Lee Jackey Lee
              Jackey Lee Jackey Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: