Hi,

Before I investigate deep into the code, it will be really helpful if someone 
can help me on this issue.

My main question is : if both schemas are provided, the parquet file reader 
uses which schema.
For example, I provide requestedSchema and readSupportMetadata in ReadContext. 
Looks like, parquet reader is using  the requested schema to read the file. 

In my case, my request schema has a different data type for a column compared 
to file schema. For example, one field type is "int" in file schema but 
"bigint" in requested schema.  I got this exception.


"Failed with exception java.io.IOException:parquet.io.ParquetDecodingException: 
Can not read value at 0 in block -1 in file file:/tmp/my/my_year.pq". But if I 
use the "int" in my requestedSchema, it works fine.

Any quick help or pointer is highly appreciated.

Regards,
Mohammad

Reply via email to