Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve exception message for FieldExtractor #228

Closed
costin opened this Issue Jul 10, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@costin
Copy link
Member

commented Jul 10, 2014

When encountering an error, the FieldExtractor implementations should be more helpful in displaying the field request and the target value, where possible.
Messages like
Caused by: org.elasticsearch.hadoop.EsHadoopIllegalArgumentException: [org.elasticsearch.hadoop.pig.PigFieldExtractor@4e5bcff7] cannot extract value from object [org.elasticsearch.hadoop.pig.PigTuple@6db28951]

are not really helpful.

@costin costin added pig labels Jul 10, 2014

costin added a commit that referenced this issue Jul 14, 2014

Add explanation about failing field extractions
Explain what fields are not found and also the target data set to
improve debugging.

related to #228

costin added a commit that referenced this issue Jul 31, 2014

Add explanation about failing field extractions
Explain what fields are not found and also the target data set to
improve debugging.

related to #228

(cherry picked from commit c14137b)
@costin

This comment has been minimized.

Copy link
Member Author

commented Jul 31, 2014

Fixed in master and 2.x

@costin costin closed this Jul 31, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.