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

Queries can be closed automatically

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      HIVE-16213 made QueryWrapper AutoCloseable, but queries are still closed manually and not by using try-with-resource. And now Query itself is auto closeable, so we don't need the wrapper at all.

      So we should get rid of QueryWrapper and use try-with-resource to create queries.

        Attachments

        1. HIVE-17730.08.patch
          33 kB
          Alex Kolbasov
        2. HIVE-17730.07.patch
          48 kB
          Alex Kolbasov

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                akolb Alex Kolbasov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: