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
When performing a count with an ORDER BY. If no rows match, instead of getting a result with a count field set to 0, we get an empty result set. This is similar to #8280 and #8621 which I had previously reported.
Expected behavior
A count result of 0 should be returned.
Actual behavior
An empty result set is returned.
Steps to reproduce
Create the schema:
CREATE CLASS Test;
CREATE Property Test.id String;
@luigidellaquila Thanks! You are correct, it is a little non-sensical. This came up because we were working with pagination and we have a utility that essentially takes your original query (that might have SKIP and LIMIT in it) and builds a second query that does the count to get the total result. The order by was coming from the original query!
OrientDB Version: 3.0.26
Java Version: openJDK 11
OS: MacOS
Issue:
When performing a count with an ORDER BY. If no rows match, instead of getting a result with a count field set to 0, we get an empty result set. This is similar to #8280 and #8621 which I had previously reported.
Expected behavior
A count result of 0 should be returned.
Actual behavior
An empty result set is returned.
Steps to reproduce
Create the schema:
Test 1 (Works)
Test 2 (Doesn't Work)
"result": [ ]
The text was updated successfully, but these errors were encountered: