I am trying to build a generic conversion program, where input is csv files, and their schemas in a separate file. The output is a compressed parquet file.
when i embed the schema of the csv within the program, it works just fine. however, the momemnt i put the same schema in a separate physical file, I get the following error message after reading the first line from schema file -
Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.parquet.schema.Type.Repetition.
I have tried to look it up but there is literally no reference to this error in Parquet context anywhere.
Just for reference, here is the schema -
message root {
required binary name (UTF8);
required binary city (UTF8);
}
please suggest way forward/mistake on my part !!