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

Feat: Create External Table support for Excel #2652

Merged
merged 14 commits into from
Feb 19, 2024
Merged

Conversation

hemanth94
Copy link
Contributor

@hemanth94 hemanth94 commented Feb 15, 2024

Feature for #2644

Hello @tychoish
By taking this as reference, I added sheet_name as option in TableOptionsExcel - This is different from Bson model.

Please review, Thanks.

crates/protogen/proto/metastore/options.proto Show resolved Hide resolved
@@ -275,7 +276,8 @@ impl<'a> ExternalDispatcher<'a> {
let tunnel = self.get_tunnel_opts(table.tunnel_id)?;

match &table.options {
TableOptions::Internal(TableOptionsInternal { .. }) => unimplemented!(), // Purposely unimplemented.
TableOptions::Internal(TableOptionsInternal { .. })
| TableOptions::Excel(TableOptionsExcel { .. }) => unimplemented!(), // Purposely unimplemented.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would think that we'd be able to implement this, but let's make excel todo!() rather than unimplemented: we would like to do it eventually, I think.

@@ -887,7 +887,8 @@ impl<'a> SessionPlanner<'a> {
let has_header = storage_options
.inner
.get("has_header")
.map(|val| val.parse::<bool>().unwrap_or_else(|| false))?;
.map(|val| val.parse::<bool>().unwrap_or(false))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I just opened a different PR for the table function to have this default to true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, will change it here as well.

@hemanth94
Copy link
Contributor Author

@tychoish Can this PR be merged now?

@tychoish tychoish enabled auto-merge (squash) February 19, 2024 16:10
@tychoish tychoish merged commit 9b8483f into GlareDB:main Feb 19, 2024
24 checks passed
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