× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
slavakiev reported 2013-09-30T21:00:53Z  · last modified 2013-10-27T16:32:25Z

Regression error with aliases


Priority Low
Complexity Unknown
Component MongoSQL
Version 14.0

Tested in Aqua Data Studio 14.0.0-rc-37 Build #: 34213 on Ubuntu 12.04( Mongo DB 2.4.3)  

select month(date()),stats[0].year sts from baseball group by sts having sts=1904  
--empty result set
--program sends wrong aggregate command: 
--[ { "$project" : { "month(date())" : { "$month" : ISODate('2013-09-30T12:22:02.066Z') }, "sts" : 1 } }, { "$group" : { "_id" : '$stats.0.year' } }, { "$project" : { "_id" : 0, "sts" : '$_id' } }, { "$project" : { "month(date())" : { "$month" : ISODate('2013-09-30T12:22:02.066Z') }, "_id" : 1, "sts" : 1 } }, { "$match" : { "sts" : 1904 } } ]
go
 
--without aliases works correct
select month(date()),stats[0].year sts from baseball  group by stats[0].year having stats[0].year=1904  
go
 

 

Issue #10269

Closed
Fixed
Resolved 2013-10-09T17:45:16Z
 
 
Completion
No due date
Fixed Build ADS 14.0.0-2 (mongo-jdbc 1.3.8)
No time estimate

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