
Ultimate access to all questions.
A table named recent_orders is created with the following code:
CREATE TABLE recent_orders AS (
SELECT a.user_id, a.email, b.order_id, b.order_date
FROM
(SELECT user_id, email
FROM users) a
INNER JOIN
(SELECT user_id, order_id, order_date
FROM orders
WHERE order_date > (current_date() - 7)) b
ON a.user_id = b.user_id
)
CREATE TABLE recent_orders AS (
SELECT a.user_id, a.email, b.order_id, b.order_date
FROM
(SELECT user_id, email
FROM users) a
INNER JOIN
(SELECT user_id, order_id, order_date
FROM orders
WHERE order_date > (current_date() - 7)) b
ON a.user_id = b.user_id
)
Both users and orders are Delta Lake tables. What describes the results when querying recent_orders?
A
All logic will execute at query time and return the result of joining the valid versions of the source tables at the time the query finishes.
B
All logic will execute when the table is defined and store the result of joining tables to the DBFS; this stored data will be returned when the table is queried.
C
Results will be computed and cached when the table is defined; these cached results will incrementally update as new records are inserted into source tables.
D
All logic will execute at query time and return the result of joining the valid versions of the source tables at the time the query began.
E
The versions of each source table will be stored in the table transaction log; query results will be saved to DBFS with each query.