Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-28756

Can't write nested object to parquet flink 1.15.1

    XMLWordPrintableJSON

Details

    Description

      Hey, I'm trying to write nested objects to parquet files with Table api (by specifying the schema). I did manage to write flattened objects to parquet files. The objects I want to write contain array of objects. The schema I used is 

       

       DataTypes. ARRAY(DataTypes.ROW(
      DataTypes.FIELD(...),...))

       

      When I tried to run it locally I got the exception:

       

      empty fields are illegal, the field should be ommited completely instead

       

      And when I debugged the code I saw that the method 

       Public void write(Array Data array Data, int ordinal) 

       

       

      In the class RowWriter in ParquetRowDataWriter is not implemented and thus the content of the array cannot be written.

       

      I have wondered if the method can be implemented or what it takes to implement it. 

      (I have thought that this can be solved by call the write(RowData row) method of the same class with the correct parameters from the arrayData).

      Attachments

        Activity

          People

            Unassigned Unassigned
            JonathanDiamant Jonathan diamant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: