See PHI1864.
DifferentialRevisionQuery does not add a GROUP BY to the query properly when querying by hash. This is not likely to cause problems in any real-world situation, but does cause explicit errors after code was added in D21400 to detect this issue.