通过Oracle查询将rank()分区转换为pyspark SQL

时间:2019-11-01 14:24:38

标签: oracle pyspark

如何通过oracle sql查询将以下rank()分区转换为等效的pyspark sql。

SELECT department_id,
       last_name,
       salary,
       commission_pct,
       RANK() OVER (PARTITION BY department_id
                    ORDER BY salary DESC, commission_pct) "Rank"
FROM   employees
WHERE  department_id = 80;

0 个答案:

没有答案