You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
union all +aggregate function in the recursive cte results an infinite loop
To Reproduce
Steps to reproduce the behavior:
importdatafusionfromdatafusionimportSessionContextctx=SessionContext()
df=ctx.sql("""with recursive t as(select value i,1 lv from generate_series(1,6,1)union allselect max(i),max(lv)+1 from t where lv<2)select * from t where lv=2;""")
>>>print(df)