-
Notifications
You must be signed in to change notification settings - Fork 62
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 read any data using custom schemas #918
Comments
Does the team need me to add any more details? @s1ck |
I could not reproduce the error on master, Spark 2.4.3 and Neo4j 3.4.1. Does the query return any results when executed in Neo4j, e.g. via browser? Maybe you misspelled the label (lower/uppercase)? AFAIK there were no recent changes to the Neo4j data source, but you could still try Morpheus 0.4.1. |
I ran the same query on the browser and it works fine. Did you try your test with a custom schema? |
Yes, I did the exact same experiment. |
Closing this as not reproducible. Please reopen if this is still an issue. |
@Mats-SX Can the custom schema be a subset of the actual graph schema? I still can't get it to work, even after updating to 0.4.2 of morpheus |
@Mats-SX I figured out that this happens when nodes have more than one label on them. I found a query being run which is related to this:
Why does morpheus check for the number of labels on a node? |
Ah, that makes sense! That's an interesting idea. I guess at this moment no, we don't allow the schema to be a subset of the actual schema, but I can definitely see why you would be interested in that sort of feature. I don't see directly why we wouldn't allow that, but I'll need to discuss it with the team. Nice find, thank you! |
Great, thanks for the update. Since Neo4j doesn't enforce a strict schema it makes sense to let users decide the properties they care about. On your end, you can simply reject the spark job if there is a mismatch between the data being read and the schema it expects |
Actually there is a way one could achieve this. So if you want to query for all users, you have to describe every existing label combination with
This will then allow you to query for every existing
This is of course not ideal, but will allow you to accomplish the job. |
I am unable to read any data from Neo4j using this library and a custom schema.
Here is how I am setting up the connection:
And this is what our schema.json looks like:
This is the query I am trying to run:
However, when I run the query, I get an empty table:
I have verified that:
morpheus.catalog.graphNames
Morpheus version:
0.4.0
Spark version:
2.4.3
Neo4j version:
3.2.0
and3.4.1
Does anyone have any idea as to what is going on?
The text was updated successfully, but these errors were encountered: