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

Re-factor HiveServer2 JDBC PreparedStatement to avoid duplicate code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • HiveServer2, JDBC
    • None

    Description

      The JDBC PreparedStatement interface extends Statement interface. The Hive JDBC driver implementations of HivePreparedStatement interface is disjoint from the HiveStatement implementation. As a result there's some duplicate code in these two classes for executing query. Also patches like implicit close on re-execute etc. are not there for PreparedStatement.

      The HivePreparedStatement should extend the HiveStatement.

      Attachments

        1. HIVE-5006.3.patch
          17 kB
          Prasad Suresh Mujumdar
        2. HIVE-5006.1.patch
          18 kB
          Prasad Suresh Mujumdar

        Activity

          People

            prasadm Prasad Suresh Mujumdar
            prasadm Prasad Suresh Mujumdar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: