-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
@cascade disables value edge facet fetching in PR #4267 #4310
Comments
Hello, Thank you for your question. Let me find someone within our team to address it. |
Hi guys, I'm not 100% about this behavior. For me cascade is related to nodes only. Facets aren't first-class-citizens do the majority of the functions aren't designed to work with them. I'll let someone with the deepest knowledge in the cascade design work out what to do better or not. Cheers. |
BTW, I believe this is the best workaround you can have
This way you can isolate the facet from the cascade function. Actually I think this is the solution. If so, case closed. |
Fixes #4310 Currently we are not able to fetch fecets associated with scalar predicate when using cascade directive. While processing cascade directive, we update uidMatrix. Every uid in uidMatrix is checked if it is present in destUIDs, if not we remove it from uidMatrix. We also remove entry from facetsMatrix for same uid. This works fine when predicate is of uid/[uid] type. When predicate is of scalar type, destUIDs and uidMatrix will be empty, hence we should not update facetsMatrix as facets here are corresponding to valueMatrix. This PR avoid updating facetsMatrix when a uid list in uidMatrix is empty in updateUidMatrix().
Hi all, The fix will be delivered in v1.2 Please comment if more help is needed, and we will reopen Many thanks, |
Thanks for the fix here. I can confirm it looks good in 1.2. |
I am building Dgraph from source using the animesh2049/issue_4081 branch currently up for review in PR #4267.
Using the following data:
I am able to fetch the "since" facet back without the
@cascade
directive, but not with it. To demonstrate, running this query:gives this result:
And this query, with
@cascade
:gives this result:
As far as I know,
@cascade
should not be affecting whether or not facets are returned for a value edge. As a further note, this problem does not seem to occur for uid edges, only value edges.The text was updated successfully, but these errors were encountered: