What happens to the source table when the first stream for a table is created?

Master Snowflake Data Engineer Exam. Study with flashcards and multiple choice questions, each question includes hints and explanations. Prepare for your success!

Multiple Choice

What happens to the source table when the first stream for a table is created?

Explanation:
When a stream is created on a table, Snowflake needs a way to track what changed since the last time you read the stream. To do this, it automatically adds two hidden metadata columns to the source table that store change-tracking information. These columns are not visible in normal queries, but they enable the stream to determine which rows were inserted, updated, or deleted and to version or identify each row for the change data it returns. The visible table schema remains the same, and you interact with changes through the stream rather than the table’s ordinary columns. This is why the correct choice notes the addition of hidden change-tracking metadata columns.

When a stream is created on a table, Snowflake needs a way to track what changed since the last time you read the stream. To do this, it automatically adds two hidden metadata columns to the source table that store change-tracking information. These columns are not visible in normal queries, but they enable the stream to determine which rows were inserted, updated, or deleted and to version or identify each row for the change data it returns. The visible table schema remains the same, and you interact with changes through the stream rather than the table’s ordinary columns. This is why the correct choice notes the addition of hidden change-tracking metadata columns.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy