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

Error executing an aggregate: cannot use non GROUP BY column '...' in query results without an aggregate function #7407

Open
msiomkin opened this issue Oct 25, 2023 · 1 comment

Comments

@msiomkin
Copy link

msiomkin commented Oct 25, 2023

An aggregate returns an error: cannot use non GROUP BY column '...' in query results without an aggregate function. But I don't have any columns in the SELECT list except my aggregate!

To Reproduce
Restore the database from the attached snapshot.
Create the aggregate using the attached source file.
Run it:

select myagg(bin1, value, bin2, bin3) from test;

Expected behavior

+-------------------------------------------------------------------------------------------+
| %1                                                                                        |
+===========================================================================================+
| 00010203                                                                                  |
+-------------------------------------------------------------------------------------------+

Actual behavior

SELECT: cannot use non GROUP BY column 'test.bin3' in query results without an aggregate function

Software versions

  • MonetDB v11.47.3 (hg id: 79dbf838f044 88683)
  • Almalinux 8
  • self-installed and compiled
@njnes
Copy link
Contributor

njnes commented Oct 25, 2023

I have to do more debugging, but I guess the aggregator function somehow isn't found, causing this rather unclear error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants