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

Direct SQL fallback broken on Postgres

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      See HIVE-5264. Postgres aborts transaction on any failed query, so the fallback doesn't work.
      Original code used to do rollback/restart tx on SQL failure, but then it was removed to allow usage in cases like dropTable/etc., where there's external tx present and we cannot partially rollback.
      Looks like the solution for now is to reinstate the rollback/reopen, and prohibit the usage inside external transactions.

        Attachments

        1. HIVE-5265.D12861.1.patch
          3 kB
          Phabricator

          Activity

            People

            • Assignee:
              sershe Sergey Shelukhin
              Reporter:
              sershe Sergey Shelukhin
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: