diff --git a/R/pkg/R/functions.R b/R/pkg/R/functions.R index 4d94b4cd05d44f4e6efa613aabdc63673be55ac0..9a545f06479151ffb87b32859146ed7881665be2 100644 --- a/R/pkg/R/functions.R +++ b/R/pkg/R/functions.R @@ -1485,7 +1485,7 @@ setMethod("soundex", #' Return the partition ID as a column #' -#' Return the partition ID of the Spark task as a SparkDataFrame column. +#' Return the partition ID as a SparkDataFrame column. #' Note that this is nondeterministic because it depends on data partitioning and #' task scheduling. #' diff --git a/python/pyspark/sql/functions.py b/python/pyspark/sql/functions.py index 45e3c22bfc6a9e86f6f005aeb610b51fc6e3fb96..245357a4bad9f4645f83d32e2154652cec3d6000 100644 --- a/python/pyspark/sql/functions.py +++ b/python/pyspark/sql/functions.py @@ -543,7 +543,7 @@ def shiftRightUnsigned(col, numBits): @since(1.6) def spark_partition_id(): - """A column for partition ID of the Spark task. + """A column for partition ID. Note that this is indeterministic because it depends on data partitioning and task scheduling.