Skip to content

Conversation

@jwfromm
Copy link
Contributor

@jwfromm jwfromm commented May 13, 2022

I introduced a bug in #11199 that causes an error when an Iterator of records is used as the argument to ApplyHistoryBest. This small PR fixes it by more carefully checking input types.

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jwfromm
Copy link
Contributor Author

jwfromm commented May 13, 2022

@mbs-octoml this should fix the issue you ran into. I decided to go with more careful type checking rather than changing the append since I think this is a more intuitive way of handling both lists of (Input, Records) pairs and iterators over them.

Copy link
Contributor

@mbs-octoml mbs-octoml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. String is Iterable!

@jwfromm jwfromm merged commit 75c31ca into apache:main May 17, 2022
@jwfromm jwfromm deleted the log_load_iter_fix branch April 12, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants