Open
Conversation
In js array may be object with key as index some another fix: - remove generic in string method. replace with toString - applyInner check not null before use in matcher - check ? when arg type is operator by toString.equals (? is char in value) - 2 test for each partial expression
sergeevik
commented
Dec 16, 2025
| lhs = new HashMap(); | ||
| for (int i = 0; i < tempLhs.size(); i++) { | ||
| ((HashMap) lhs).put(i, tempLhs.get(i)); | ||
| } |
Author
There was a problem hiding this comment.
maybe better:
var lhsNewMap = new HashMap();
var lhsOldList = (List)lhs;
for (int i = 0; i < lhsOldList.size(); i++) {
lhsNewMap.put(i, tempLhs.get(i));
}
lhs = lhsNewMap;
uw4
reviewed
Dec 18, 2025
Contributor
uw4
left a comment
There was a problem hiding this comment.
Thanks + good catch!
We're reviewing this behavior of $each with list as input -
we want to clarify this with the original Jsonata maintainers, might be as well be a glitch in the original impl
Author
|
find some another bug caused by this fix. @uw4 @aeberhart any updates about for this bug? memory pill for me: json: and expression not fork after this fix and not coverage by tests |
Author
|
I've fix the example-bug above. It's not the best solution, but I haven't come up with anything else yet. I've also added a test from my post with verification. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In js array may be object with key as index
some another fix: