cxzl25 opened a new pull request, #36296:
URL: https://github.com/apache/spark/pull/36296

   ### What changes were proposed in this pull request?
   Add detailed log in `OrcUtils#requestedColumnIds`.
   
   ### Why are the changes needed?
   In OrcUtils#requestedColumnIds sometimes it fails because 
orcFieldNames.length > dataSchema.length, the log is not very clear. 
   
   ```
   java.lang.AssertionError: assertion failed: The given data schema 
struct<field1:int> has less fields than the actual ORC physical schema, no idea 
which columns were dropped, fail to read.
   ```
   
   after the change
   ```
   java.lang.AssertionError: assertion failed: The given data schema 
struct<field1:int> (length:1) has less 1 fields than the actual ORC physical 
schema struct<field1:int,field2:int> (length:2), no idea which columns were 
dropped, fail to read.
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   exist UT / local test
   


-- 
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