Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15717

JDBC: Implement rowDeleted, rowInserted and rowUpdated to return false

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None

    Description

      In performance profile of beeline with hive jdbc driver, it is seen that lot of time is spent in Class "org.apache.hive.beeline.Rows.Row" constructor, due to exception handling.
      The exception handling from the 3 methods calls (rowDeleted, rowInserted and rowUpdated). The implementation of these methods in org.apache.hive.jdbc.HiveBaseResultSet class is just throwing SQLException("Method not supported”), i.e. no real implementations.

      Implementing these methods to return false instead of throwing exception will help improve the performance.

      Attachments

        1. HIVE-15717.1.patch
          0.8 kB
          Tao Li
        2. HIVE-15717.2.patch
          2 kB
          Tao Li
        3. Screen Shot 2017-01-24 at 3.11.09 PM.png
          143 kB
          Tao Li
        4. Screen Shot 2017-01-24 at 3.15.14 PM.png
          211 kB
          Tao Li

        Activity

          People

            taoli-hwx Tao Li
            taoli-hwx Tao Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: