SOQL Query returns "Too many rows" warning for aggregate query

Issue #2572 resolved
Mark Bickford created an issue

Using the SOQL Query window to run an aggregate query such as

SELECT MAX(CreatedDate) FROM Custom_Object__c

results in a warning related to the number of rows being examined, even though only one row is returned:

Comments (2)

  1. Scott Wells repo owner
    • changed status to open

    Thank you for logging. I'm currently traveling with very limited network access, but I'll take a look when I can. My guess is that it's running the query without the aggregate to determine the row count as part of it's validation, and of course by definiton the aggregate will return only one row. Should be a simple fix.

  2. Log in to comment