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

Reuse HiveDecimalWritable in ConvertTreeReaderFactory

    XMLWordPrintableJSON

Details

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

    Description

      https://github.com/apache/orc/blob/fb0ed31f15d9b77b76bc5dec8721f5d9ee129879/java/core/src/java/org/apache/orc/impl/ConvertTreeReaderFactory.java#L826

      Several places in ConvertTreeReaderFactory that creates a HiveDecimalWritable for each element being processed. It is very common practice to keep a single instance of xyzWritable for re-use. Do the same here.

      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: