ranger icon indicating copy to clipboard operation
ranger copied to clipboard

RANGER-5125: Missing accessResult column value in ORC File Logging

Open zbaranow opened this issue 11 months ago • 0 comments

What changes were proposed in this pull request?

  • Fixed an issue where short values (e.g., accessResult field) were not correctly converted to strings before being written to ORC.
  • Modified castStringObject(Object object) to properly handle Short values by converting them to strings.

Why is this needed?

  • Previously, short values were missing from the ORC output because they were not handled in castStringObject(), leading to incorrect (empty) values in the ORC file.
  • This fix ensures that short values are correctly converted to strings before being stored in ORC.

How was this patch tested?

  • Manual testing by running the main() method from OrcUtils.java.
  • Verified that the accessResult column in the generated ORC file now contains the correct values instead of being empty.

zbaranow avatar Jan 31 '25 16:01 zbaranow