ExamGecko
Question list
Search
Search

List of questions

Search

Question 145 - ARA-C01 discussion

Report
Export

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?

A.
All rows loaded using a specific COPY statement will have varying timestamps based on when the rows were inserted.
Answers
A.
All rows loaded using a specific COPY statement will have varying timestamps based on when the rows were inserted.
B.
Any rows loaded using a specific COPY statement will have varying timestamps based on when the rows were read from the source.
Answers
B.
Any rows loaded using a specific COPY statement will have varying timestamps based on when the rows were read from the source.
C.
Any rows loaded using a specific COPY statement will have varying timestamps based on when the rows were created in the source.
Answers
C.
Any rows loaded using a specific COPY statement will have varying timestamps based on when the rows were created in the source.
D.
All rows loaded using a specific COPY statement will have the same timestamp value.
Answers
D.
All rows loaded using a specific COPY statement will have the same timestamp value.
Suggested answer: D

Explanation:

When using the COPY command to load data into Snowflake, if a column has a default value set to CURRENT_TIME() or CURRENT_TIMESTAMP(), all rows loaded by that specific COPY command will have the same timestamp. This is because the default value for the timestamp is evaluated at the start of the COPY operation, and that same value is applied to all rows loaded by that operation.

asked 23/09/2024
Bartłomiej Praniuk
24 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first