Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-847

Do Not Create Empty Array in StringGroupFromBinaryTreeReader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.0
    • 1.8.0
    • None
    • None

    Description

      StringGroupFromBinaryTreeReader.java
          @Override
          public void setConvertVectorElement(int elementNum) throws IOException {
            byte[] bytes = inBytesColVector.vector[elementNum];
            int start = inBytesColVector.start[elementNum];
            int length = inBytesColVector.length[elementNum];
      
            // Use an static empty array instead of creating a zero-length array
            byte[] string = new byte[length == 0 ? 0 : 3 * length - 1];
      

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: