-
Notifications
You must be signed in to change notification settings - Fork 122
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 cross function example #218
Conversation
It looks like the only example of the `cross` function we had in the docs was actually wrong… Can anyone confirm?
✅ Deploy Preview for openrefine-website ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Yes, the example is wrong in the sense that an Array might be the result, or it might not. Depends on if it returns an The original expression syntax was to get the 1st Row from the Array |
@wetneb : yes, the documentation is wrong.
should of course be
Regards, A. |
No, this has not changed with the fix 3 years ago. Somehow, the doc got broken. Sad, but good thing it's now fixed. Regards, |
In fact both expressions work. Although
So all give the same result I'm not sure if this has always been the case, but I always use (and teach) the last of these as it makes most sense to me, but I guess the other options provide some convenience if you just need a single value |
Ah, good point. Actually, I find it really messy that GREL silently applies a computation to the elements of an array as a map. |
All of these examples deemphasize the fact that |
It looks like the only example of the
cross
function we had in the docs was actually wrong… Can anyone confirm?