-
Notifications
You must be signed in to change notification settings - Fork 201
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
check if table exist #406
Comments
I'm hesitant if we want to add this. I'd rather add the The following logic will avoid fetching the table when not needed: try:
table = catalog.create_table("aemo.price",schema=price.schema)
except:
table = catalog.load_table("aemo.price")
table.append(price) I think in your case a |
I don't want to replace the table, if the table exist leave it as it is , otherwise create a new one, but not replace it. actually this is what I use with delta
|
I like the |
I think table_exists:
CREATE TABLE IF NOT EXISTS
|
Can I take a stab at the |
@Gowthami03B That would be great! 👍 One note here:
I think it would make more sense to do an actual Thanks @syun64 for summarizing the options.
I believe this is the most Pythonic way of doing it, but I agree that we could mirror the SQL catalog = load_catalog('default')
catalog.create_table_if_not_exists('schema.table', schema=...) Thoughts? |
Feature Request / Improvement
it will be nice to have an API to quickly check if a table exist, or alternatively create table if it does not exist
current I am doing this
The text was updated successfully, but these errors were encountered: