uros-b opened a new pull request, #57792: URL: https://github.com/apache/spark/pull/57792
### What changes were proposed in this pull request? Replaces the explicit `.apply(...)` calls with direct invocation on the encoder serializers, deserializers and unsafe projections in `StateTypesEncoderUtils` (19 call sites). ### Why are the changes needed? All of these receivers are `Function1` subtypes: `ExpressionEncoder.Serializer` extends `(T => InternalRow)`, `ExpressionEncoder.Deserializer` extends `(InternalRow => T)`, and `UnsafeProjection` extends `Projection`, which extends `(InternalRow => InternalRow)`. For a `Function1`, `f(x)` is exactly `f.apply(x)`, so the explicit form adds noise without meaning. The same file already calls several projections directly, so this removes an internal inconsistency rather than introducing a new style. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Syntactic change with identical semantics; existing transformWithState tests cover these paths. No new tests needed. ### 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]
