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

BUG: wrong order of keywords on creating transient database #97

Closed
aleenprd opened this issue Aug 26, 2024 · 2 comments
Closed

BUG: wrong order of keywords on creating transient database #97

aleenprd opened this issue Aug 26, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@aleenprd
Copy link

titan_test_db = Database(
    name="TITAN_TEST_DB",
    comment="This is a database used for testing of titan[core].",
    transient=True,
    owner="SYSADMIN",
    data_retention_time_in_days=None,
    max_data_extension_time_in_days=None,
)

results in

snowflake.connector.errors.ProgrammingError: 001003: failed to execute sql, [CREATE DATABASE TITAN_TEST_DB TRANSIENT COMMENT = $$This is a database used for testing of titan[core].$$]

The correct syntax is:
CREATE TRANSIENT DATABASE TITAN_TEST_DB COMMENT = $$This is a database used for testing of titan[core].$$;

@aleenprd aleenprd changed the title BUG: wrong order or keywords on creating transient database BUG: wrong order of keywords on creating transient database Aug 26, 2024
@aleenprd
Copy link
Author

Same thing for schemas snowflake.connector.errors.ProgrammingError: 001003: failed to execute sql, [CREATE SCHEMA TITAN_TEST_DB.TITAN_TEST_SCHEMA TRANSIENT COMMENT = $$This is a schema used for testing purposes of titan[core].$$]

@teej teej added the bug Something isn't working label Sep 4, 2024
@teej teej added this to the v0.9 milestone Sep 10, 2024
@teej
Copy link
Collaborator

teej commented Sep 25, 2024

Fixed in v0.9

@teej teej closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants