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

Re-factor HiveServer2 JDBC PreparedStatement to avoid duplicate code

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: HiveServer2, JDBC
    • Labels:
      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.1.patch
          18 kB
          Prasad Mujumdar
        2. HIVE-5006.3.patch
          17 kB
          Prasad Mujumdar

          Activity

            People

            • Assignee:
              prasadm Prasad Mujumdar
              Reporter:
              prasadm Prasad Mujumdar
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: