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

Complete initial pass on virtual tables #858

Merged
merged 7 commits into from
Feb 6, 2025

Conversation

PThorpe92
Copy link
Contributor

@PThorpe92 PThorpe92 commented Feb 2, 2025

EDIT:
Ok this should finally be all set. There were some massive changes that had taken place since the original PR 🫠 🫠 merge conflicts were serious

As soon as this is merged, I will finish the rest of what is needed for
CREATE VIRTUAL TABLE some_table USING some_extension('some argument or sql');

I added tests for the series extension.

This PR is already big and covers a LOT of surface area, so we should ideally try to get this in first, and I'll go back and complete the rest of the functionality 👍

@PThorpe92 PThorpe92 changed the base branch from virtual-tables to main February 2, 2025 00:06
core/lib.rs Outdated Show resolved Hide resolved
core/schema.rs Outdated Show resolved Hide resolved
@PThorpe92 PThorpe92 force-pushed the virtual-tables branch 2 times, most recently from f2a29bb to 4ff4c6d Compare February 3, 2025 02:55
@PThorpe92 PThorpe92 marked this pull request as draft February 5, 2025 05:03
@PThorpe92 PThorpe92 force-pushed the virtual-tables branch 2 times, most recently from 163e73d to 53d227f Compare February 5, 2025 20:22
@PThorpe92 PThorpe92 marked this pull request as ready for review February 5, 2025 20:30
@PThorpe92 PThorpe92 force-pushed the virtual-tables branch 2 times, most recently from 6a95e34 to b3cc7b5 Compare February 5, 2025 20:45
Ok(TableReference {
op: Operation::Scan { iter_dir: None },
join_info: None,
table: Table::Virtual(vtab.clone().into()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

wonder if we could get rid of enum TableReferenceType if Table::Virtual had the args in it. Semantically it sort of fits I think, generate_series(1,10,1) is an instantiation of generate_series with those arguments. but mainly I'm just looking for excuses not to have TableReferenceType anymore :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gahhh I swear was wondering about that I almost just removed it. Yeah I think it is, and it applies in the case of other examples I am thinking of

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok that wasn't so bad 👍

@PThorpe92 PThorpe92 changed the title Finish Virtual tables Complete initial pass on virtual tables Feb 6, 2025
@jussisaurio jussisaurio changed the base branch from main to virtual-tables February 6, 2025 07:39
@jussisaurio jussisaurio changed the base branch from virtual-tables to main February 6, 2025 07:52
@jussisaurio jussisaurio merged commit 098da07 into tursodatabase:main Feb 6, 2025
27 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.

3 participants