标签: hql
因此,在SQL中,我可以像下面这样按年,月和日计算一个人的年龄。如何在HQL Hue / Hive中执行相同的操作。
SELECT EXTRACT(YEAR FROM Age (DOB)) as Age_Year, EXTRACT(MONTH FROM Age(DOB)) as Age_Month, EXTRACT(DAY FROM Age(DOB)) as Age_Day from DOB_TABLE
预期结果