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

refactor: table options #2767

Merged
merged 47 commits into from
Mar 27, 2024
Merged

Conversation

universalmind303
Copy link
Contributor

No description provided.

crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
crates/protogen/src/metastore/types/options.rs Outdated Show resolved Hide resolved
crates/protogen/src/metastore/types/options.rs Outdated Show resolved Hide resolved
crates/sqlbuiltins/src/lib.rs Outdated Show resolved Hide resolved
crates/sqlbuiltins/src/lib.rs Outdated Show resolved Hide resolved
testdata/sqllogictests/external_schema.slt Outdated Show resolved Hide resolved
crates/sqlexec/src/dispatch/external.rs Outdated Show resolved Hide resolved
crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
@universalmind303
Copy link
Contributor Author

@tychoish I removed all of the table_provider_from_db_options related stuff. I realized I was going against my own words of "keep the changes as minimal as possible".

We'll probably want some logic for that conversion at some point, but I think it's just noise right now.

@tychoish
Copy link
Contributor

We'll probably want some logic for that conversion at some point, but I think it's just noise right now.

Definitely, it's also a fringe feature that (I think) is a superset of table providers rather than a property of a table provider.

Makes sense.

crates/datasources/src/lance/mod.rs Outdated Show resolved Hide resolved
crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
crates/protogen/proto/metastore/catalog.proto Outdated Show resolved Hide resolved
crates/protogen/proto/metastore/service.proto Outdated Show resolved Hide resolved
crates/datasources/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@tychoish tychoish left a comment

Choose a reason for hiding this comment

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

few questions and comments.

I guess this is not a new issue, but the refactoring highlights this issue:

if users specify "COLUMNS" for a datasource that doesn't support them, then we should error, and I think right now we just continue, and that's probably incorrect but it probably should be follow up to this, unless it's easy/obvious to fix.

crates/metastore/Cargo.toml Outdated Show resolved Hide resolved
crates/protogen/proto/metastore/catalog.proto Outdated Show resolved Hide resolved
crates/protogen/proto/metastore/options.proto Outdated Show resolved Hide resolved
crates/protogen/proto/metastore/options.proto Show resolved Hide resolved
crates/protogen/proto/metastore/options.proto Show resolved Hide resolved
crates/sqlexec/src/dispatch/external.rs Outdated Show resolved Hide resolved
crates/sqlexec/src/planner/session_planner.rs Outdated Show resolved Hide resolved
@universalmind303 universalmind303 enabled auto-merge (squash) March 27, 2024 19:00
@universalmind303 universalmind303 merged commit 6cf8f2b into main Mar 27, 2024
26 checks passed
@universalmind303 universalmind303 deleted the universalmind303/table-options-refactor branch March 27, 2024 19:14
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.

3 participants