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

Fix flush() for RecordConsumer and implementations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0, 1.8.1
    • 1.9.0, 1.8.2
    • parquet-mr
    • None

    Description

      flush() was added in RecordConsumer and MessageColumnIO to help implementing nulls caching.

      However, other RecordConsumer implementations should also implements flush() properly. For instance, RecordConsumerLoggingWrapper and ValidatingRecordConsumer should call delegate.flush() in their flush() methods, otherwise data might be mistakenly truncated.

      This ticket:

      • makes flush() abstract in RecordConsumer
      • implements flush() properly for all RecordConsumer subclasses, specifically:
        • RecordConsumerLoggingWrapper
        • ValidatingRecordConsumer
        • ConverterConsumer
        • ExpectationValidatingRecordConsumer

      Attachments

        Issue Links

          Activity

            People

              proflin Liwei Lin(Inactive)
              proflin Liwei Lin(Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: