Hello everyone, I have an issue with FileSink. Fir...
# troubleshooting
l
Hello everyone, I have an issue with FileSink. First I will share the details, I have a protobuf with over 249 fields which exceeds the max fields size in a protobuf (249), thus I created a sub message with 249 fields and the rest of the feilds are flatten. Now when I write this protobuf to a parquet using FileSink, I get a parquet which includes a column of the huge sub message. Like a huge map (exp - {a:1, b:2 .......} ) Is there a way to flatten this column too in the parquet ? I am using this code -
Copy code
import org.apache.flink.connector.file.sink.FileSink;
import org.apache.flink.formats.parquet.protobuf.ParquetProtoWriters

// ProtoRecord is a generated protobuf Message class.
val input: DataStream[ProtoRecord] = ...

val sink: FileSink[ProtoRecord] = FileSink
    .forBulkFormat(outputBasePath, ParquetProtoWriters.forType(classOf[ProtoRecord]))
    .build()

input.sinkTo(sink)