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

   ### What changes were proposed in this pull request?
   Add tests for map types in `ProtoUtils.abbreviate`
   
   
   ### Why are the changes needed?
   when I started working on `SPARK-46988` to make `ProtoUtils.abbreviate` 
support `map` type, I just found that it had already been supported when we 
supported `repeated Message`.
   
   A `map` field internally is also a `repeated` field, and each element is a 
`Message`.
   
   see 
https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MapEntry
   
   > In reflection API, map fields will be treated as repeated message fields 
and each map entry is accessed as a message. This MapEntry class is used to 
represent these map entry messages in reflection API.
   
   
   ### Does this PR introduce _any_ user-facing change?
   no, test-only
   
   
   ### How was this patch tested?
   added tests
   
   
   ### 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