Skip to content

Conversation

@holicc
Copy link
Contributor

@holicc holicc commented Sep 8, 2023

@houqp houqp merged commit 5348f68 into roapi:main Sep 11, 2023
@houqp
Copy link
Member

houqp commented Sep 11, 2023

this is so much cleaner, thank you!

.map_err(|e| ColumnQError::Database(e.to_string()))?;
Ok(datafusion::datasource::MemTable::try_new(
destination.arrow_schema(),
vec![destination.arrow().unwrap()],
Copy link
Member

Choose a reason for hiding this comment

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

instead of doing an unwrap here, we should propagate the error to the caller instead so we don't crash the server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes thank you! I will make another PR to fix this, since the previous PR has already been merged.

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.

2 participants