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

Throw Exception if runHive(sql) failed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.1.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: