When trying to perform a query with Output Statistics against one of my MapServer endpoints I get an error in the query tool: "Unable to complete operation."
If I look at my logs I get a corresponding "General geodatabase error occured" error.
The endpoint data source is a Standalone Query Table which does not have any geometry/geography fields on SQL Server 2019.
Regular queries without outStatistics work fine. Please advise.