-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: warn+terminate if edge drops all results #87
Conversation
Example queries that would get a 500 error with the current code, and are now correctly handled by this PR: the tyrosine-phenylalanine query from the linked issuePOST to http://localhost:3000/v1/smartapi/1d288b3a3caf75d541ffaae3aab386c8/query (semmeddb thru BTE specifically)
one-hop Explain related to demo query D3
two-hop Explain related to demo query A2a
|
This looks to address the issue! However, I'd want to test to see if there's any inadvertent changes to other queries (that are successful / have results). |
I think of this issue as addressing the situation where two QNodes with IDs are connected to each other in the QGraph (like an Explain-style, but it can be more complex), but BTE doesn't actually find a connection between the two QNodes after all the sub-query execution and edge-management (intersecting records from different QEdges). |
@tokebe do we need a test for this behavior? |
Yes, we could stand to test for this behavior. |
Addresses cases where sub-queries return results, but those results aren't kept because they don't match the opposing
qNode
ID(s).After updating edge results, check if the edge still has any results and terminate the query if it doesn't, with a warning to the user via TRAPI logs.