Repository navigation
Some GenericUDFs wrongly cast ObjectInspectors - #4896
Conversation
ayushtkn
left a comment
There was a problem hiding this comment.
this might be a problem in other places I believe, I see similar code in GenericUDFElt/GenericUDFLocate and many other places as well,
can we fix there as well?
|
@ayushtkn Thanks. Can I address all similar issues in this single ticket? |
|
Yep |
|
Kudos, SonarCloud Quality Gate passed!
|
|
@ayushtkn I changed the scope, checked all UDFs, and added validations to where we incorrectly cast ObjectInspectors. I checked them by my eyes and it is possible that I missed some other mistakes. |
|
Thank you! |
…). (okumin, reviewed by Ayush Saxena, Attila Turoczy)
…). (okumin, reviewed by Ayush Saxena, Attila Turoczy)
…). (okumin, reviewed by Ayush Saxena, Attila Turoczy)









What changes were proposed in this pull request?
We have some UDFs that don't correctly cast ObjectInspectors.
https://issues.apache.org/jira/browse/HIVE-27905
Why are the changes needed?
Because we'd like to show better error messages. It should be helpful for users, and administrators who are monitoring errors. The original message is too primitive.
Does this PR introduce any user-facing change?
Yes. Error messages can change.
Is the change a dependency upgrade?
No.
How was this patch tested?
I added integration tests.