Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to store result of unionall in let query variable #8955

Closed
creisle opened this issue Jul 11, 2019 · 2 comments
Closed

Unable to store result of unionall in let query variable #8955

creisle opened this issue Jul 11, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@creisle
Copy link

creisle commented Jul 11, 2019

OrientDB Version: 3.0.20

Java Version

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

OS: centos07

Expected behavior

Using the demodb I expected the following queries to both return the same result

select expand($d) 
  let $a = (select * from Countries where Name like 'A%'), 
       $b = (select * from Countries where Name like 'B%'), 
       $c = UNIONALL($a, $b), 
       $d = (select * from (select expand($c)) where Name like '%a');
select expand($d) 
  let $a = (select * from Countries where Name like 'A%'), 
       $b = (select * from Countries where Name like 'B%'), 
       $d = (select * from (select expand(UNIONALL($a, $b))) where Name like '%a');

Actual behavior

The first query returns nothing, The second query returns the expected 18 records

Steps to reproduce

Run the queries outlined above

@creisle
Copy link
Author

creisle commented Jul 11, 2019

Note that this used to work in v2

@luigidellaquila
Copy link
Member

Hi @creisle

I have a fix for this, I'm pushing it to 3.0.x and develop branches now

Thanks

Luigi

@luigidellaquila luigidellaquila self-assigned this Aug 13, 2019
@luigidellaquila luigidellaquila added this to the 3.0.23 milestone Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants