You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jungtaek Lim (Jira)" <ji...@apache.org> on 2026/08/06 06:44:00 UTC
[jira] [Resolved] (SPARK-58589) Drop redundant .apply on Function1 encoders in StateTypesEncoderUtils
[ https://issues.apache.org/jira/browse/SPARK-58589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jungtaek Lim resolved SPARK-58589.
----------------------------------
Fix Version/s: 4.4.0
Resolution: Fixed
Issue resolved by pull request 57792
[https://github.com/apache/spark/pull/57792]
> Drop redundant .apply on Function1 encoders in StateTypesEncoderUtils
> ---------------------------------------------------------------------
>
> Key: SPARK-58589
> URL: https://issues.apache.org/jira/browse/SPARK-58589
> Project: Spark
> Issue Type: Improvement
> Components: Structured Streaming
> Affects Versions: 4.3.0
> Reporter: Uroš Bojanić
> Assignee: Uroš Bojanić
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.4.0
>
>
> StateTypesEncoderUtils invokes its encoder serializers, deserializers and unsafe projections with an explicit .apply(...) at 19 call sites. All of these receivers are Function1 subtypes (ExpressionEncoder.Serializer, ExpressionEncoder.Deserializer and UnsafeProjection), so f(x) and f.apply(x) are identical. The same file already uses the direct call form for several projections, so this only removes an inconsistency. No behavior change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org