Hi everyone, I am trying to read parquet files in ...
# troubleshooting
v
Hi everyone, I am trying to read parquet files in flink 1.15.2 in data stream api, It is paritioned by two field let's say
first
,
second
, when i am reading using
Copy code
FileSource.forRecordStreamFormat(InhouseStreamStatic.forGenericRecord(schema), new Path("src/test/resources/input"))
inside path, I am getting all value except that are used in partion, Any way I can read them along with each record
I know these values are in path not in files, How to get populated them with each record in data stream api. Any help would be greatly appreciated
Is there a way to tell this value are the parition one in avro or by any other config, Any help would be really appreciaeted
t
To read partitioned Parquet files in Flink and include partition values with each record, you can follow these steps: a. Extract Partition Values: Implement logic to extract partition values from the file path. b. Enrich Records: Use a map function to append the extracted partition values to each record after reading the files. Flink does not provide built-in support for this, so you’ll need to manually implement the logic to parse the file paths and enrich the records.
v
Thank you for replying @Tim Wolfe. I will try. just in case got any more suggestion. Right now i am using
Copy code
FileSource.forRecordStreamFormat
any suggestion which interface of class could be used for this override behaviour