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

   ### What changes were proposed in this pull request?
   The pr aims to replace `schema()` with `columns()`.
   
   
   ### Why are the changes needed?
   - After https://github.com/apache/spark/pull/40049, `StructType 
schema();`(since = "3.4.0") has been marked as `@Deprecated`. In Spark's 
internal use, I think we should switch from `schema()` to `columns()`.
   - Eliminate compilation warnings as follows:
     
![c044309d751c841484811d6138136d51](https://github.com/user-attachments/assets/f77cf202-eb40-428a-bbed-3fbc854c8b12)
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   - Update existed UT.
   - Pass GA.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.
   


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