Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3020

Some exception message text not displayed in SQLLine, etc.; copy to thrown SQLException's message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Client - JDBC
    • None

    Description

      In the JDBC driver, for some SQLException thrown to wrap underlying exceptions, the thrown SQLException's message text does not include any information from the underlying exception.

      The means that the underlying message text is less likely to be visible to the end user. (For example, SQLLine display's a SQLException's message text, but not normally its stack track or the message text of chained exceptions.)

      (Note that does not apply to UserExceptions from the server; that case is already handled.)
       

      For those cases, the JDBC driver should copy more information into the top-level SQLException's message text (e.g., copy the message text of the next chained exception, as it already does for UserExceptions.)

      Attachments

        1. DRILL-3020.1.patch.txt
          5 kB
          Daniel Barclay

        Issue Links

          Activity

            People

              dsbos Daniel Barclay
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: