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

orcfiledump doesn't print hive.acid.version value

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Transactions
    • Labels:
      None
    • Target Version/s:
    • Release Note:
      n/a

      Description

      HIVE-18659 added hive.acid.version in the file footer.
      orcfiledump prints something like

      User Metadata:
        hive.acid.key.index=1,536870912,1;
        hive.acid.stats=2,0,0
        hive.acid.version=
      

      probably because

          public static void setAcidVersionInDataFile(Writer writer) {
            //so that we know which version wrote the file
            ByteBuffer bf = ByteBuffer.allocate(4).putInt(ORC_ACID_VERSION);
            bf.rewind(); //don't ask - some ByteBuffer weridness. w/o this, empty buffer is written
            writer.addUserMetadata(ACID_VERSION_KEY, bf);
          }
      

      use
      UTF8.encode()) instead

        Attachments

        1. HIVE-19137.01.patch
          2 kB
          Igor Kryvenko
        2. HIVE-19137.02.patch
          2 kB
          Igor Kryvenko
        3. HIVE-19137.02-branch-3.patch
          6 kB
          Igor Kryvenko
        4. HIVE-19137.03.patch
          5 kB
          Igor Kryvenko
        5. HIVE-19137.03-branch-3.patch
          6 kB
          Igor Kryvenko
        6. HIVE-19137.04.patch
          6 kB
          Igor Kryvenko
        7. HIVE-19137.05.patch
          6 kB
          Igor Kryvenko
        8. HIVE-19137-branch-3.01.patch
          6 kB
          Igor Kryvenko

          Issue Links

            Activity

              People

              • Assignee:
                ikryvenko Igor Kryvenko
                Reporter:
                ekoifman Eugene Koifman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: