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

The class HiveResultSet should implement batch fetching.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • JDBC
    • None
    • Custom Java application using the Hive JDBC driver to connect to a Hive server, execute a Hive query and process the results.

    • Reviewed
    • Use batch fetching on the hive jdbc driver to increase performance.

    Description

      When using the Hive JDBC driver, you can execute a Hive query and obtain a HiveResultSet instance that contains the results of the query.
      Unfortunately, HiveResultSet can then only fetch a single row of these results from the Hive server at a time. As a consequence, it's extremely slow to fetch a resultset of anything other than a trivial size.

      It would be nice for the HiveResultSet to be able to fetch N rows from the server at a time, so that performance is suitable to support applications that provide human interaction.
      (From memory, I think it took me around 20 minutes to fetch 4000 rows.)

      Attachments

        1. HIVE-1815.2.patch.txt
          6 kB
          Bennie Schut
        2. HIVE-1815.1.patch.txt
          5 kB
          Bennie Schut

        Activity

          People

            bennies Bennie Schut
            guylemar Guy le Mar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: