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

Simplify read database table code #293

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Simplify read database table code #293

merged 1 commit into from
Sep 11, 2023

Conversation

holicc
Copy link
Contributor

@holicc holicc commented Sep 8, 2023

@houqp houqp merged commit 5348f68 into roapi:main Sep 11, 2023
8 checks passed
@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.

None yet

2 participants