Does the statement CREATE OR REPLACE TABLE MYTABLE LIKE MY_TABLE cost compute credits?

Master the SnowPro Advanced Architect Test with flashcards, multiple-choice questions, and detailed explanations. Prepare thoroughly for your certification!

Multiple Choice

Does the statement CREATE OR REPLACE TABLE MYTABLE LIKE MY_TABLE cost compute credits?

Explanation:
This operation creates a new table by duplicating the existing table’s schema and metadata, without copying any actual data. Because nothing is read from the source table and no data is moved or processed, there is no data scanning or heavy compute involved. It’s a metadata-only change, so it doesn’t trigger the kind of compute work you’d see when querying or loading data. If you instead used a statement that selects data from the source (for example, creating a table as select), that would involve reading the data and would use compute credits. In short, creating a table with LIKE copies the structure only, so it does not cost compute credits.

This operation creates a new table by duplicating the existing table’s schema and metadata, without copying any actual data. Because nothing is read from the source table and no data is moved or processed, there is no data scanning or heavy compute involved. It’s a metadata-only change, so it doesn’t trigger the kind of compute work you’d see when querying or loading data. If you instead used a statement that selects data from the source (for example, creating a table as select), that would involve reading the data and would use compute credits. In short, creating a table with LIKE copies the structure only, so it does not cost compute credits.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy