Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-46987][CONNECT]
ProtoUtils.abbreviate
avoid unnecessary `set…
…Field` operation ### What changes were proposed in this pull request? `ProtoUtils.abbreviate` avoid unnecessary `setField` operation ### Why are the changes needed? according to the [API reference](https://protobuf.dev/reference/java/api-docs/com/google/protobuf/Message.html#toBuilder--): > Message.Builder toBuilder() Constructs a builder initialized with the current message. Use this to derive a new message from the current one. the builder we used already has all the fields, so we only need to update the truncated fields. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#45045 from zhengruifeng/connect_redaction_nit. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: yangjie01 <yangjie01@baidu.com>