Spark Sql Sum Case When