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
It seems that currently functions that are defined recursively will either not compile or will result in a max expression depth limit error, e.g. using the snippet shown below.
It would be helpful if the documentation could not only clarify what should be expected of the current versions of DuckDB, but also indicate the path forward.
Please feel free to interpret this documentation-bug report as a functional-enhancement request :-)
To Reproduce
create or replace function f(n) as (select 1);
create or replace function f(n) as (
case when n <= 1 then 1
else f(n-1)
end
);
select f(3);
OS:
MacOS
DuckDB Version:
any
DuckDB Client:
CLI
Hardware:
No response
Full Name:
Peter Koppstein
Affiliation:
Princeton University
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a source build
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Yes, I have
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
Yes, I have
The text was updated successfully, but these errors were encountered:
What happens?
It seems that currently functions that are defined recursively will either not compile or will result in a max expression depth limit error, e.g. using the snippet shown below.
It would be helpful if the documentation could not only clarify what should be expected of the current versions of DuckDB, but also indicate the path forward.
Please feel free to interpret this documentation-bug report as a functional-enhancement request :-)
To Reproduce
OS:
MacOS
DuckDB Version:
any
DuckDB Client:
CLI
Hardware:
No response
Full Name:
Peter Koppstein
Affiliation:
Princeton University
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a source build
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: