Hotfix for unwind and merge & broken iterator, fixes #2856#2861
Hotfix for unwind and merge & broken iterator, fixes #2856#2861robfrank merged 5 commits intoArcadeData:mainfrom
Conversation
Summary of ChangesHello @ExtReMLapin, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request provides a hotfix for a persistent 'iterator exhausted' bug encountered during Gremlin operations, specifically when dealing with Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Compiled at home on windows, not sure if precommit did the job correctly |
🧪 CI InsightsHere's what we observed from your CI run for 71880b8. 🟢 All jobs passed!But CI Insights is watching 👀 |
There was a problem hiding this comment.
Code Review
This pull request correctly fixes an iterator exhaustion bug by ensuring a new iterator is created on each call to the supplier. The changes in ArcadeFilterByIndexStep and ArcadeFilterByTypeStep are logical and address the described issue.
I've added one comment regarding code duplication in ArcadeFilterByTypeStep.java which could be addressed in a follow-up to improve maintainability.
Given this is a hotfix, it would be highly beneficial to add a regression test that reproduces the original bug. This would ensure the fix is effective and prevent future regressions, especially since the PR description notes a lack of bandwidth for testing.
dbd38cc to
2dd72d0
Compare
|
thanks, merged |
|
Hooray ! |
What does this PR do?
fixes #2856
Motivation
What inspired you to submit this pull request?
Something something iterator exhausted, gremlin specific bug.
Related issues
#2856
Additional Notes
Gemini did all the work
No bandwidth to read the whole code myself
No bandwidth to write tests
Checklist
mvn clean packagecommandFailing tests :