uros-b opened a new pull request, #58449:
URL: https://github.com/apache/spark/pull/58449

   ### What changes were proposed in this pull request?
   
   `OrcUtils` checks for an empty ORC schema two ways: `readSchema` uses 
`schema.getFieldNames.size == 0`, while elsewhere the file uses `.isEmpty` 
(e.g. `orcFieldNames.isEmpty`). This changes the former to `.isEmpty` so the 
file is consistent.
   
   ### Why are the changes needed?
   
   `.isEmpty` is the idiomatic emptiness check and matches the existing usage 
in the same file. `java.util.List.isEmpty()` is exactly `size() == 0`, so this 
is a behavior-preserving consistency cleanup.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Existing tests. The change is a behavior-preserving replacement of `size == 
0` with the equivalent `.isEmpty`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to