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

Add an option to allow auto conversion from empty fields to NULL

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: parquet-mr
    • Labels:
      None

      Description

      Right now, Parquet Writer throws out an exception:

      Parquet record is malformed: empty fields are illegal, the field should be ommited completely instead

      when an empty field (array or struct or map I guess?) is written.

      The suggestion here is to add an option "auto_convert_empty_fields_to_null" that convert empty fields to null automatically on write.

      The LOC to change is here:

      if (emptyField) {
      {{    throw new ParquetEncodingException("empty fields are illegal, the field should be ommited completely instead");}}
      }

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zshao Zheng Shao
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: