In Presto SQL, unlike regular SQL, intervals must be created with inverted commas:
INTERVAL '1' DAY
rather than
INTERVAL 1 DAY
I am trying to generate a set of dates as described here: https://stackoverflow.com/a/2157776/2388930, but am encountering an issue with
INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY
How might this be achieved? I tried
parse((a.a + (10 * b.a) + (100 * c.a)) as varchar)
but this was not successful.