Skip to content
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

Support collection index range in dynamic path expression #1187

Open
igarashitm opened this issue Aug 21, 2019 · 0 comments
Open

Support collection index range in dynamic path expression #1187

igarashitm opened this issue Aug 21, 2019 · 0 comments

Comments

@igarashitm
Copy link
Member

igarashitm commented Aug 21, 2019

xref: https://issues.redhat.com/browse/ENTESB-12403

Support indexed collection field path expression like /Email<1>, also range like /Email<0-3,5>.

Map items of a collection at defined indexes e.g.

/Company<0,1,5>/Person<0-9>/fullName -> Person<b>/fullName

=> The target will contain only 30 items from source
"Map items of a collection at defined indexes e.g.

Person<0-9>/fullName -> Person<b>/fullName

=> The target will contain only 10 items from source"

It needs some way to manually edit collection indexes in the expression. Currently it shows as label and collection index is not accessible.

@stale stale bot added the status/stale Issue considered to be stale so that it can be closed soon label Nov 19, 2019
@stale stale bot removed the status/stale Issue considered to be stale so that it can be closed soon label Nov 20, 2019
@atlasmap atlasmap deleted a comment from stale bot Nov 21, 2019
@igarashitm igarashitm changed the title Support indexed collection field in expression Support collection index in dynamic path expression Nov 21, 2019
igarashitm added a commit to igarashitm/atlasmap that referenced this issue Feb 11, 2020
Fixes: atlasmap#1512
Instead of having expression as a transformation, this will bring `<Document ID>:</path/to/field>` syntax of path expression directly into expression parser. It allows expression to support more complex cases like FILTER and SELECT.
This partially addresses atlasmap#1507, but in order to have it working for real usecase, atlasmap#1562 has to be addressed for each FieldReader of java/json/xml.
Also, this supports specifying single index on a field (atlasmap#1187).
igarashitm added a commit that referenced this issue Feb 11, 2020
Fixes: #1512
Instead of having expression as a transformation, this will bring `<Document ID>:</path/to/field>` syntax of path expression directly into expression parser. It allows expression to support more complex cases like FILTER and SELECT.
This partially addresses #1507, but in order to have it working for real usecase, #1562 has to be addressed for each FieldReader of java/json/xml.
Also, this supports specifying single index on a field (#1187).
@igarashitm igarashitm changed the title Support collection index in dynamic path expression Support collection index range in dynamic path expression Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant