-
Notifications
You must be signed in to change notification settings - Fork 259
Support for data joins and positional variables #371
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
Conversation
mattbaileyuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of really minor points, but happy with all the rest, so will approve this because those are small things that could be fixed later anyway.
|
Can't we reduce it to just Same with Alternative : An underscore to represent context computation. It can be extended just like functions.
Example : |
|
Thanks for the feedback @jugaadi. In one of my early prototypes, I did experiment with dropping the '$'. However, I felt that the dollar made the variable token consistent across the language. It is also used when binding variables using the |
This PR introduces two new operators that can be used within a path expression:
@$varis used on a map step (.) to bind a variable to the current context item.#$varis used to bind a variable to the current context position (in the sequence).The former can be used to perform data cross referencing and joins - resolves #333.
The latter resolves #187
The documentation has been updated with details of these operators, plus a section on the explaining path processing model.