ranger
ranger copied to clipboard
RANGER-5125: Missing accessResult column value in ORC File Logging
What changes were proposed in this pull request?
- Fixed an issue where
shortvalues (e.g.,accessResultfield) were not correctly converted to strings before being written to ORC. - Modified
castStringObject(Object object)to properly handleShortvalues by converting them to strings.
Why is this needed?
- Previously,
shortvalues were missing from the ORC output because they were not handled incastStringObject(), leading to incorrect (empty) values in the ORC file. - This fix ensures that
shortvalues are correctly converted to strings before being stored in ORC.
How was this patch tested?
- Manual testing by running the
main()method fromOrcUtils.java. - Verified that the accessResult column in the generated ORC file now contains the correct values instead of being empty.