Uroš Bojanić created SPARK-58589:
------------------------------------
Summary: 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ć
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: [email protected]
For additional commands, e-mail: [email protected]