Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10840

[C++] Parquet FileMetaData does not have key_value_metadata when built from FileMetaDataBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.0.1, 2.0.0
    • 3.0.0
    • C++

    Description

      FileMetaDataImpl::key_value_metadata_ is initialized in the constructor: https://github.com/apache/arrow/blob/apache-arrow-1.0.0/cpp/src/parquet/metadata.cc#L530

      But in RowGroupMetaDataBuilder::Finish, FileMetaDataImpl::metadata_ is set after the construction and we are missing the FileMetaDataImpl::InitKeyValueMetadata call here: https://github.com/apache/arrow/blob/apache-arrow-1.0.0/cpp/src/parquet/metadata.cc#L1412

      Attachments

        Issue Links

          Activity

            People

              yuhta Jimmy Lu
              yuhta Jimmy Lu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h