Related Post: Spark Count Distinct Window Function Spark Sql Count Distinct Window Function Pyspark Count Distinct Window Function