Spark Sql Weighted Average