Skip to content
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

cannot prefix a SQL UDF to make it an aggregate function #18202

Closed
stdrc opened this issue Aug 22, 2024 · 0 comments · Fixed by #18203
Closed

cannot prefix a SQL UDF to make it an aggregate function #18202

stdrc opened this issue Aug 22, 2024 · 0 comments · Fixed by #18203
Labels
type/bug Something isn't working
Milestone

Comments

@stdrc
Copy link
Member

stdrc commented Aug 22, 2024

Describe the bug

create function as2 ( int[] ) returns bigint language sql as 'select array_sum($1)';
select aggregate:as2(a) from (values (1), (2)) t(a);

output:

ERROR:  Failed to run the query

Caused by these errors (recent errors listed first):
  1: failed to build executor
  2: Expr error
  3: Failed to decode prost: field not found `identifier`

expected:

3
@stdrc stdrc added the type/bug Something isn't working label Aug 22, 2024
@github-actions github-actions bot added this to the release-2.1 milestone Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant