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

filter2 API performance regression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The new filter API seems to be much slower (or perhaps I'm using it wrong :)

      Code using an UnboundRecordFilter:

      ColumnRecordFilter.column(column,
          ColumnPredicates.applyFunctionToBinary(
          input -> Binary.fromString(value).equals(input)));
      

      vs. code using FilterPredicate:

      eq(binaryColumn(column), Binary.fromString(value));
      

      The latter performs twice as slow on the same Parquet file (built using 1.6.0rc2).

      Note: the reader is constructed using

      ParquetReader.builder(new ProtoReadSupport().withFilter(filter).build()
      

      The new filter API based approach seems to create a whole lot more garbage (perhaps due to reconstructing all the rows?).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              phraktle Viktor Szathmáry
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: