Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1759

InternalParquetRecordReader Use Singleton Set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.12.0
    • None

    Description

      https://github.com/apache/parquet-mr/blob/d85a8f5dcfc1381655fcccaa81a2e83ba812f6a4/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/InternalParquetRecordReader.java#L260-L262

      Code currently instantiates a HashSet (with a default internal data structure of size 16}} and then makes it immutable. Use Collection#singleton to achieve this same goal with fewer lines of code and less memory requirements.

      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: