-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguous call when trying to call a stored function returning a table type #93313
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
I think this might be related to #93321. cc @DrewKimball |
I'm unable to reproduce this either on current master or on v22.2.0. @lukaseder do you have any other details from when you observed this? |
Sure, I did this:
Then connected with Dbeaver: Then I ran this, as mentioned in the ticket: create table t (i int, j int);
insert into t values (1, 2);
create or replace function f () returns t as
$$
select i, j from t;
$$
language sql;
select f(); Result: select version(); Produces:
Hope this helps |
Not sure if it's relevant, but I'm running Docker Desktop version 4.14.1 (91661) on Windows:
|
Thanks for the help, it reproduces for me using dbeaver. |
This is fixed by #96734, which will make it into the next 22.2 minor version. |
Describe the problem
I can't call a stored function that returns a table type from
SELECT
To Reproduce
The error is:
But I'm not seeing the ambiguity in the catalog:
Result for both queries:
Note, I also can't drop the function!
Expected behavior
I would expect this result as in native PostgreSQL:
Environment:
Jira issue: CRDB-22269
The text was updated successfully, but these errors were encountered: