Skip to content

Allow DROP VIEW and DROP MATERIALIZED VIEW#21

Merged
recidinick merged 1 commit into
candidate/rb20240328from
recidinick/drop.views
Nov 13, 2024
Merged

Allow DROP VIEW and DROP MATERIALIZED VIEW#21
recidinick merged 1 commit into
candidate/rb20240328from
recidinick/drop.views

Conversation

@recidinick

Copy link
Copy Markdown

The DeleteTables function was only dropping tables, despite the rest of the project being aware of all BigQuery table types. This PR moves those table types to internal/types to be used more easily, and then checks for the table type when dropping a table.

@ohaibbq I had made a different candidate branch candidate/rb20240815, but saw that our fork of this repo and go-zetasqlite have some mismatch with goccy's when I rebased it (both ours and his have quite a few changes). Do you think it would be easier to get our forks in sync before getting this change in? (I'm not sure what the upstream response time is).

This change would unblock a few issues for us, so I'd be happy to make a new release for us with this change and then spend some time contributing to syncing with goccy when I am back from PTO.

@ohaibbq

ohaibbq commented Nov 12, 2024

Copy link
Copy Markdown

Let's make a new release to candidate/rb20240328. I had spent some time in August rebasing but did not follow through with a release. I'm likely going to plan some emulator maintenance for Q1 which would include getting our fork up to date.

@ageiduschek ageiduschek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Congrats on your first emulator PR!! Thanks for taking this on 🙂

Comment on lines +1 to +5
"""
This example creates a dataset, table, and view,
shows that the output of the table and view are expected,
and removes the dataset, table, and view.
"""

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

😍 incredible!!

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