powered by
Return the partition ID as a SparkDataFrame column. Note that this is nondeterministic because it depends on data partitioning and task scheduling.
spark_partition_id(x = "missing")# S4 method for missing spark_partition_id()
# S4 method for missing spark_partition_id()
empty. Should be used with no argument.
This is equivalent to the SPARK_PARTITION_ID function in SQL.
# NOT RUN { select(df, spark_partition_id()) # }
Run the code above in your browser using DataLab