Not able to store int or boolean from Pig to Parquet
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 1.6k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 33
Description
I have a simple Pig schema that contains long and boolean properties. When trying to store the records using `parquet.pig.ParquetStorer();` I get the following error:
```
java.io.IOException: parquet.io.ParquetEncodingException: can not write value at 9 in tuple (...) from type 'likeCount: long' to type 'optional int64 likeCount'
```
**Reporter**: [Jonathan Morales](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jonathanmv@outlook.com)
**Note**: *This issue was originally created as [PARQUET-586](https://issues.apache.org/jira/browse/PARQUET-586). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with the reported Pig schema containing long and boolean properties and ParquetStorer. Trace the conversion from Pig tuple values to the reported optional int64 Parquet field, and consider the boolean path as well. Done means the records store successfully without the reported ParquetEncodingException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100