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

Allow Parquet to Proto conversion even though Target Schema has less fields

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • parquet-protobuf
    • None

    Description

      If Parquet has any field which has been removed from the schema and Parquet to Proto conversion happens, it errors out due to Unknown fields. There could be some scenarios that we want to still convert PARQUET into the target proto schema object which has lesser fields.

      If specified "ignoreUnknownFields" as an argument, this should allow the conversion which ignore fields it can't convert and not error out.

      Similar functionality exist in https://github.com/protocolbuffers/protobuf/blob/main/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java with field "ignoringUnknownFields"

      Attachments

        Activity

          People

            sanjaysharma Sanjay Sharma
            sanjaysharma Sanjay Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: