You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andy Sautins (Jira)" <ji...@apache.org> on 2025/10/10 21:55:00 UTC
[jira] [Updated] (SPARK-53873) ExplodeBase.eval Iterate directly on input
[ https://issues.apache.org/jira/browse/SPARK-53873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Sautins updated SPARK-53873:
---------------------------------
Component/s: SQL
(was: Spark Core)
> ExplodeBase.eval Iterate directly on input
> ------------------------------------------
>
> Key: SPARK-53873
> URL: https://issues.apache.org/jira/browse/SPARK-53873
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.1
> Reporter: Andy Sautins
> Priority: Trivial
>
> It was noticed that `ExplodeBase.eval` returns an IterableOnce[InternalRow]. The current implementation creates a pre-allocated array, populates the array appropriately, and returns the Array. This works as the is an implicit conversion from Array to IterableOnce.
> However Allocating and populating an array does not seem to provide benefits over exposing an iterator over the input data type.
> A proposed PR removes the creation and population of the array and instead returns a IterableOnce object that iterates over the underlying input.
--
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