Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
To handle failures gracefully in PySpark, which of the following correctly completes the statement?\n\nSpark.read.table("table_name").select("column").write.mode("append").SaveAsTable("new_table_name")\n\nprint(f"query failed")
Spark.read.table("table_name").select("column").write.mode("append").SaveAsTable("new_table_name")
print(f"query failed")
A
try: failure:
B
try: catch:
C
try: except:
D
try: fail:
E
try: error: