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

fix: compile error with lifetime issues on optimize (#1843) #1852

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

dispanser
Copy link
Contributor

Description

Fix compile error in main when not activating datafusion feature.

Related Issue(s)

@github-actions github-actions bot added binding/rust Issues for the Rust crate crate/core labels Nov 13, 2023
@dispanser
Copy link
Contributor Author

I'm not even sure I understand what I'm doing here, but moving the code that transforms a stream of files into a stream of record batches into its own function with an explicit type signature apparently helps the compiler to properly understand the involved lifetimes.
If that's not commit-worthy, it may at least serve as a starting point for people smarter than me to create a proper fix.

@rtyler rtyler enabled auto-merge (rebase) November 13, 2023 20:25
auto-merge was automatically disabled November 13, 2023 20:38

Head branch was pushed to by a user without write access

@rtyler rtyler merged commit f87ca3a into delta-io:main Nov 14, 2023
19 of 21 checks passed
@dispanser dispanser deleted the fix_lifetime_error branch November 14, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate crate/core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cargo clippy fails on core in main
2 participants