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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zbaranow
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant