Counts occurrences of different values and outputs result as Map[T,Long].
Counts occurrences of different values and outputs result as Map[T,Long].
Amount of keys in result map is limited by limit
.
None
if amount of distinct values is bigger than limit
.
Some(result)
if amount of distinct values is within limit
.
Returns Spark's DataFrame column name safe for using in SQL expressions.
Returns Spark's DataFrame column name safe for using in SQL expressions.
properly escaped column name
Utils for spark.