Spark Pivot Documentation Example