When I write the code below in snowflake, I've got the error.
set start_date = '2020-08-01'::TIMESTAMP_NTZ(9);
set end_date = '2020-11-30'::TIMESTAMP_NTZ(9);
WITH DateTable AS (
SELECT $start_date AS MyDate
UNION ALL
SELECT DATEADD(DAY, 1, MyDate) FROM DateTable WHERE MyDate < $end_date
)
SELECT * FROM DateTable;
The error message is as below...
Recursion exceeded max iteration count (100)
It seems there is no option to increase max iteration count by my self.
How can I increase the limit of interation count?