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 panics datafusion #1618

Merged

Conversation

slinkydeveloper
Copy link
Contributor

No description provided.

…Make all those methods return Result, and not panic anymore. Also the Result is on the individual stream elements, such that a consumer can decide whether to individually treat failures on stream item, or on the whole stream.
To do that, I've defined a trait `Builder` in table_util.rs, and I have pushed the logic that iterates the stream and fills the builder directly in the `LocalPartitionScanner` implementation.
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks for removing the sources of panics from the runtime @slinkydeveloper. The changes look good to me. +1 for merging.

@slinkydeveloper slinkydeveloper merged commit dc6867c into restatedev:main Jun 11, 2024
4 checks passed
@slinkydeveloper slinkydeveloper deleted the fix-panics-datafusion branch June 11, 2024 11:07
tillrohrmann pushed a commit that referenced this pull request Jun 11, 2024
* Move the `all_*` methods from PartitionStore to the relative traits. Make all those methods return Result, and not panic anymore. Also the Result is on the individual stream elements, such that a consumer can decide whether to individually treat failures on stream item, or on the whole stream.

* Adapt to the changes in storage_api

* Unify all the code scanning `PartitionStore` in datafusion.

To do that, I've defined a trait `Builder` in table_util.rs, and I have pushed the logic that iterates the stream and fills the builder directly in the `LocalPartitionScanner` implementation.
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.

None yet

2 participants