× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2013-04-24T01:31:51Z  · last modified 2013-07-09T22:48:06Z

Errors with the Union Clause in mongodb


Dev
Emil Goicovici
emil.goicovici
QA
Jenny Nishimura
JennyNishimura
Priority Low
Complexity Unknown
Component MongoSQL
Version 14.0
Version: 14.0-dev-41
Build #: 32003
Build Date: 2013-Apr-19 02:57:23 PM
 
Operating Environment: Mac OS X (10.8.2, x86_64) / MacRoman / en / US / Apple Inc. 1.6.0_41-b02-445-11M4107
 
Error Messages with the Union Clause in mongodb
 
1. First query executes correctly
2. Based on the first query, i added union inside the () and get  Xꐇᡧꂭꀘ not supported as subquery. I dont understand what Xꐇᡧꂭꀘ is
 
3.  The 3rd query is same as 4rth and 5th, but gives Select statement has different number of rows. If i do select JSON * from (SELECT JSON FROM baseball ) as table i dont see the _id field
 
4. The 4rth and 5th query gives (Bad Key: 'managerName.first')  which seems to be correct, I added these to show the difference in the 3rd query
 

select city a, teamName  from baseball 

union

select * from ( SELECT city a, teamName  FROM baseball) as table

go

 

select from baseball 

union

select * from ( SELECT * FROM baseball union SELECT * FROM baseball) as table

go

 

select JSON  * from baseball 

union all

select JSON * from (SELECT JSON FROM baseball ) as table

go

 

select from baseball 

union all

select * from (SELECT  * FROM baseball ) as table

go

 

select Flatten_array  * from baseball 

union all

select Flatten_array * from (select Flatten_array  * from baseball  ) as table

go

 

Issue #8728

Closed
Invalid
Resolved 2013-06-26T17:47:06Z
 
 
Completion
No due date
No fixed build
No time estimate

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