× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
slavakiev reported 2013-09-04T11:37:54Z  · last modified 2013-09-17T09:24:28Z

COUNT(distinct suppresses error message when DISTINCT used in other aggregation functions


doc
Priority Major
Complexity Unknown
Component MongoSQL
Version 14.0

Tested Aqua Data Studio Aqua Data Studio 14.0.0-rc-8 Build #: 33812 on Ubuntu 12.04( Mongo DB 2.4.3)

Normaly when  DISTINCT used in the aggregation functions error message appears:

SELECT sum(distinct valuation) FROM baseaball

-- sum() called with wrong argument type

go

But when COUNT( distinct) also appears in the query this error suppresed and <null> result returned. Better give error message than return wrong result.

SELECT sum(distinct valuation), count(distinct valuation)  FROM baseaball

--  sum(distinct valuation)  count(distinct valuation)

------------------------------------  ----------------------------------

--               ( null)                                              1 

Issue #9897

Closed
Fixed
Resolved 2013-09-10T19:45:38Z
 
 
Completion
No due date
Fixed Build ADS 14.0.0-rc-18 (mongo-jdbc 1.3.3)
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017