Skip to content

Incorrect behavior using eval when adding * in inner projection #10424

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

Open
NicolasJuanF opened this issue Mar 21, 2025 · 0 comments
Open

Incorrect behavior using eval when adding * in inner projection #10424

NicolasJuanF opened this issue Mar 21, 2025 · 0 comments
Labels
Milestone

Comments

@NicolasJuanF
Copy link

NicolasJuanF commented Mar 21, 2025

OrientDB Version: 3.2.36

Java Version: "11.0.26"

OS: Ubuntu 24.04

Expected behavior

Calling eval should work properly

Actual behavior

eval returns false even when condition should be true

Steps to reproduce

/* This works correctly. eval returns true */
select eval("'a' in info.example_list") from ( 
    select @this:{
        ["a","b"] as example_list
    } as info from V limit 1
) 

/* If I add * to the inner projection suddenly eval returns 'false' */
select eval("'a' in info.example_list") from ( 
    select *, @this:{
        ["a","b"] as example_list
    } as info from V limit 1
) 

Notes:

Tried this on versions 3.2.16 and 3.2.30 and both work fine. Not sure which version started the problem.

@tglman tglman added the bug label Mar 21, 2025
@tglman tglman added this to the 3.2.x milestone Mar 21, 2025
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