nerdexam
Snowflake

ARA-C01 · Question #168

When loading data into a table that captures the load time in a column with a default value of either CURRENT_TIME () or CURRENT_TIMESTAMP() what will occur?

The correct answer is D. All rows loaded using a specific COPY statement will have the same timestamp value. According to the Snowflake documentation, when loading data into a table that captures the load time in a column with a default value of either CURRENT_TIME () or CURRENT_TIMESTAMP(), the default value is evaluated once per COPY statement, not once per row. Therefore, all rows…

Data Engineering

Question

When loading data into a table that captures the load time in a column with a default value of either CURRENT_TIME () or CURRENT_TIMESTAMP() what will occur?

Options

  • AAll rows loaded using a specific COPY statement will have varying timestamps based on when the
  • BAny rows loaded using a specific COPY statement will have varying timestamps based on when
  • CAny rows loaded using a specific COPY statement will have varying timestamps based on when
  • DAll rows loaded using a specific COPY statement will have the same timestamp value.

How the community answered

(29 responses)
  • B
    7% (2)
  • C
    3% (1)
  • D
    90% (26)

Explanation

According to the Snowflake documentation, when loading data into a table that captures the load time in a column with a default value of either CURRENT_TIME () or CURRENT_TIMESTAMP(), the default value is evaluated once per COPY statement, not once per row. Therefore, all rows loaded using a specific COPY statement will have the same timestamp value. This behavior ensures that the timestamp value reflects the time when the data was loaded into the table, not when the data was read from the source or created in the source.

Topics

#Data Loading#Default Values#Timestamps#COPY INTO

Community Discussion

No community discussion yet for this question.

Full ARA-C01 Practice