I am trying to convert the query written in MySQL to HiveQL The part of query giving me error is :
WHERE 1 = 1
AND table1.incoming_date >= DATE_SUB(DATE_SUB(CURDATE(),INTERVAL DAY(CURDATE()) - 1 DAY),INTERVAL 3 MONTH)
Most probably it is because INTERVAL is not supported in Hive with DATE_SUB(). So, can someone convert this part for me.
Error:
ParseException:
extraneous input 'DAY' expecting {')', ','}(line 179, pos 60)