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

[BUG] Unable to query for Vertices by presence or absence of an incoming vertex #260

Open
1 task done
aSapien opened this issue Aug 16, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@aSapien
Copy link

aSapien commented Aug 16, 2024

Describe the bug

When querying for vertices that DO have an incoming edge, results are returned with empty list in the _IN_ID column (see screenshot):

select * from MyVertex as mv where mv.MY_EDGE_IN_ID <> ''; -- returns all MyVertex vertices
select * from MyVertex as mv where mv.MY_EDGE_IN_ID <> '[]'; -- also returns all MyVertex vertices

When trying to find vertices that DON't have such an incoming edge, not vertices are returned at all:

select * from MyVertex as mv where mv.MY_EDGE_IN_ID = ''; -- returns nothing
select * from MyVertex as mv where mv.MY_EDGE_IN_ID = '[]'; -- also nothing

Steps to Reproduce

If being used outside of a BI Tool, fill in:
1. What version of the JDBC Driver are you using?   3.0.3
2. What language variant are you using (SPARQL, Gremlin, openCypher, SQL)? SQL
3. What database are you connecting to (Amazon Neptune, Neo4J, etc)? Neptune
4. What engine version of the database are you using? 1.2.1.0 (Serverless)
5. What Java version are you using? `17.0.11+1`
6. Please attach a code snippet of the code that is causing the error
select * from MyVertex as mv where mv.MY_EDGE_IN_ID = ''; 
select * from MyVertex as mv where mv.MY_EDGE_IN_ID = '[]';
select * from MyVertex as mv where mv.MY_EDGE_IN_ID <> '';
select * from MyVertex as mv where mv.MY_EDGE_IN_ID <> '[]';
8. If bug occurred during query execution attach the SQL
select * from MyVertex as mv where mv.MY_EDGE_IN_ID = ''; 
select * from MyVertex as mv where mv.MY_EDGE_IN_ID = '[]';
select * from MyVertex as mv where mv.MY_EDGE_IN_ID <> '';
select * from MyVertex as mv where mv.MY_EDGE_IN_ID <> '[]';
9. Attach debug logs if applicable/possible (please ensure it doesn't contain any sensitive information)

Expected behavior

Should be able to query vertices by presence or absence of an edge connection.

Screenshots

image

Environment

Additional Context

@aSapien aSapien added the bug Something isn't working label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant