A data engineer appends data to an existing Delta table using the following code. The DataFrame df_new has an extra column discount_pct that does not exist in the current table schema. What is the default behavior?
df_new.write \
.format("delta") \
.mode("append") \
.save("/mnt/delta/orders")
df_new has an extra column discount_pct that does not exist in the current table schema. What is the default behavior?
df_new.write \
.format("delta") \
.mode("append") \
.save("/mnt/delta/orders")
discount_pct is silently dropped to match the existing schemaAnalysisException because Delta Lake enforces schema by defaultdiscount_pct is automatically added to the Delta table schemadiscount_pct is null are writtenMore Data Transformation, Cleansing, and Quality Questions
20 questions
Full Databricks Certified Data Engineer Professional Practice Test
All topics covered
All Databricks Certified Data Engineer Professional Questions
Browse by topic
Related Questions
In a Lakeflow Spark Declarative Pipeline, which decorator retains invalid records in the target data...
Which of the following is a valid constraint expression for a Lakeflow SDP pipeline expectation?...
A Lakeflow SDP pipeline defines two independent parallel flows: `customer_flow` with an `@dp.expect_...
A data engineer enables Delta Change Data Feed on a table and reads the feed using `spark.read.forma...
In a Lakeflow Spark Declarative Pipeline, what is the key behavioral difference between a streaming ...
Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy
Discussion
Be the first to share your understanding of this concept
Sign in to join the discussion