You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/08/05 11:01:00 UTC
[jira] [Updated] (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 ]
ASF GitHub Bot updated SPARK-58589:
-----------------------------------
Labels: pull-request-available (was: )
> 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ć
> Priority: Major
> Labels: pull-request-available
>
> 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