sdf_last_index: Returns the last index of a Spark DataFrame

View source: R/sdf_interface.R

sdf_last_indexR Documentation

Returns the last index of a Spark DataFrame

Description

Returns the last index of a Spark DataFrame. The Spark mapPartitionsWithIndex function is used to iterate through the last nonempty partition of the RDD to find the last record.

Usage

sdf_last_index(x, id = "id")

Arguments

x

A spark_connection, ml_pipeline, or a tbl_spark.

id

The name of the index column.


rstudio/sparklyr documentation built on Sept. 18, 2024, 6:10 a.m.