Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-46134

Replace `df.take(1).toSeq(0)` with `df.first()` in `ProtobufFunctionsSuite`

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              LuciferYang Yang Jie
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: