Skip to content

Conversation

@houqp
Copy link
Member

@houqp houqp commented Jul 10, 2021

Rationale for this change

Follow up for #605.

What changes are included in this PR?

Replace manual once chain iterator with array::IntoIter to make code more readable based on feedback from #605 (comment).

Are there any user-facing changes?

no

Copy link
Member

@jorgecarleitao jorgecarleitao left a comment

Choose a reason for hiding this comment

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

This is a branch new rust's API, right? that we can now concert arrays to iterators of values.

@houqp
Copy link
Member Author

houqp commented Jul 11, 2021

@jorgecarleitao yes, this is a relatively new API that landed in stable rust 1.51.

@jimexist
Copy link
Member

can you remove the intoiter wrapping since array has it implemented by default?

@houqp
Copy link
Member Author

houqp commented Jul 13, 2021

@jimexist good call, I was using 1.52 on my dev machine, which was giving me errors.

@alamb alamb merged commit fd50dd8 into apache:master Jul 13, 2021
alamb pushed a commit to alamb/datafusion that referenced this pull request Jul 13, 2021
* replace once iter chain with array::IntoIter

* use new array IntoIter implementation from rust 1.53
@houqp houqp deleted the qp_chain branch July 13, 2021 19:03
andygrove pushed a commit to andygrove/datafusion that referenced this pull request Jan 31, 2025
unkloud pushed a commit to unkloud/datafusion that referenced this pull request Mar 23, 2025
H0TB0X420 pushed a commit to H0TB0X420/datafusion that referenced this pull request Oct 7, 2025
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.

4 participants