You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2023/11/28 19:37:00 UTC
[jira] [Resolved] (SPARK-46134) Replace `df.take(1).toSeq(0)` with `df.first()` in `ProtobufFunctionsSuite`
[ https://issues.apache.org/jira/browse/SPARK-46134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-46134.
-----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 44048
[https://github.com/apache/spark/pull/44048]
> Replace `df.take(1).toSeq(0)` with `df.first()` in `ProtobufFunctionsSuite`
> ---------------------------------------------------------------------------
>
> Key: SPARK-46134
> URL: https://issues.apache.org/jira/browse/SPARK-46134
> Project: Spark
> Issue Type: Improvement
> Components: Protobuf, Tests
> Affects Versions: 4.0.0
> Reporter: Yang Jie
> Assignee: Yang Jie
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> In `ProtobufFunctionsSuite`, there are some cases where `df.take(1).toSeq(0)` is used to get the first row in the DataFrame. This can be achieved by using the `.first()` API, which looks clearer and more concise.
--
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