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

Temp table can be created with same name as snowflake Iceberg table #29

Open
ryanwithawhy opened this issue Feb 20, 2025 · 0 comments
Open

Comments

@ryanwithawhy
Copy link
Collaborator

Run the following code in snowflake:

CREATE OR REPLACE ICEBERG TABLE universql_demo.gold.finwire_cmp (
    PTS TIMESTAMP NOT NULL,
    CompanyName STRING NOT NULL,
    CIK STRING NOT NULL,
    Status STRING NOT NULL,
    IndustryID STRING NOT NULL,
    SPRating STRING,
    FoundingDate DATE,
    AddrLine1 STRING NOT NULL,
    AddrLine2 STRING,
    PostalCode STRING NOT NULL,
    City STRING NOT NULL,
    StateProvince STRING NOT NULL,
    Country STRING,
    CEOName STRING NOT NULL,
    Description STRING NOT NULL
)
EXTERNAL_VOLUME = ICEBERG_EXTERNAL_VOLUME
CATALOG = 'SNOWFLAKE'
BASE_LOCATION = 'tables';

Then run the following code in UniverSQL:

CREATE OR REPLACE TEMP TABLE universql_demo.gold.finwire_cmp (
    PTS TIMESTAMP NOT NULL,
    CompanyName STRING NOT NULL,
    CIK STRING NOT NULL,
    Status STRING NOT NULL,
    IndustryID STRING NOT NULL,
    SPRating STRING,
    FoundingDate DATE,
    AddrLine1 STRING NOT NULL,
    AddrLine2 STRING,
    PostalCode STRING NOT NULL,
    City STRING NOT NULL,
    StateProvince STRING NOT NULL,
    Country STRING,
    CEOName STRING NOT NULL,
    Description STRING NOT NULL
);

The temp table creation should fail as a permanent table with the same name exists, but it does not.

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

No branches or pull requests

1 participant