[SPARK-3519] add distinct(n) to SchemaRDD in PySpark