We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given table such as:
Then running a query with GROUP BY such as:
GROUP BY
SELECT first_name + ' ' + last_name, COUNT(@rid) FROM Test GROUP BY last_name, first_name
Should group specified columns like in SQL:
Actually groups people with same last_name to same bucket
Prepare table with data:
CREATE CLASS TEST EXTENDS V; INSERT INTO Test (first_name, last_name) VALUES ('Onida', 'Francescone'), ('Onida', 'Ryan'), ('Maximilien', 'Ryan'), ('Dot', 'Henzley'), ('Lauree', 'Springham'), ('Abran', 'Ranking'), ('Abran', 'Stannas'), ('Gypsy', 'Stannas'), ('Cory', 'Whal'), ('Cory', 'Schoales'), ('Augusta', 'Schoales'), ('Walliw', 'Garrard');
Query:
SELECT first_name + ' ' + last_name, COUNT(@rid) FROM Test GROUP BY first_name, last_name
Workaround:
The query seems to give expected results when using GROUP BY first_name + ' ' + last_name syntax:
GROUP BY first_name + ' ' + last_name
SELECT first_name + ' ' + last_name, COUNT(@rid) FROM Test GROUP BY first_name + ' ' + last_name
Also when selecting first_name and last_name fields directly in SELECT the query returns results as expected.
SELECT first_name, last_name, COUNT(@rid) FROM Test GROUP BY first_name, last_name
The text was updated successfully, but these errors were encountered:
Hi @josalmi
I'm working on it now
Thanks
Luigi
Sorry, something went wrong.
Fix SQL GROUP BY with multiple columns that do not appear in the proj…
217d729
…ections Resolves: #8625
f675271
I just pushed a fix, it will be released with v 3.0.11
luigidellaquila
No branches or pull requests
OrientDB Version: 3.0.9
Java Version: openjdk version "1.8.0_171"
OS: alpine 3.8.1 (I'm using the official Docker image)
Given table such as:
Then running a query with
GROUP BY
such as:Expected behavior
Should group specified columns like in SQL:
Actual behavior
Actually groups people with same last_name to same bucket
Steps to reproduce
Prepare table with data:
Query:
Workaround:
The query seems to give expected results when using
GROUP BY first_name + ' ' + last_name
syntax:Also when selecting first_name and last_name fields directly in SELECT the query returns results as expected.
The text was updated successfully, but these errors were encountered: