hive获取日期对应的星期

pmod(datediff(order_date,'2000-01-02'),7)
原文地址:https://www.cnblogs.com/lingear/p/8311630.html