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

[WIP] Add support for external tables with qualified names #12645

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

OussamaSaoudi
Copy link
Contributor

Which issue does this PR close?

Closes #12607

Rationale for this change

What changes are included in this PR?

This PR adds the ability to create external tables with qualified names.

Are these changes tested?

Not yet, tests incoming!

Are there any user-facing changes?

Yes there are user-facing changes. Previously, external tables with qualified names was unsupported.

@github-actions github-actions bot added sql SQL Planner core Core DataFusion crate labels Sep 27, 2024
visitor
.relations
.insert(ObjectName(vec![Ident::from(table.name.as_str())]));
let idents: Vec<Ident> = table.name.split('.').map(Ident::from).collect();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part is not necessary for the bug fix. Not sure if I should leave it here to maintain consistency of external table name handling.

@OussamaSaoudi
Copy link
Contributor Author

@alamb I've never written tests for Datafusion before. What's a good spot to test this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CREATE EXTERNAL TABLE does not support schema (fully qualified names)
1 participant