with recursive nums as (
select 0 as n
union
select n+1 from nums where n<9
)
,seq as (
select nums_4.n*1000+nums_3.n*100+nums_2.n*10+nums_1.n as n
from nums nums_4,nums nums_3,nums nums_2,nums nums_1
),dates as 
(
select date_add('2021-01-01',interval n day) as d
from seq 
having d<='2023-10-01'
)select * from dates

这段sql可以生成1万天以内的连续日期,如果需要更大,改一下中间seq那段就行了