QuestionQ182

VerifiedDeveloping Code for Data Processing using Python and SQL

The data engineering team maintains this code:

Question Image

Assuming the code produces logically correct results and the source-table data has been deduplicated and validated, which statement describes what happens when the code executes?

Explanation

DataFrameWriter.table writes the DataFrame to the named table, and mode("overwrite") replaces existing destination data with the DataFrame’s output. The joined finalDF is therefore computed during this write using the then-current valid contents of all three source tables, and its result overwrites enriched_itemized_orders_by_account. Spark overwrite mode is not a primary-key-based update and does not create incremental source-change detection. PySpark DataFrameWriter.mode

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!