Cannot create table or view abc because it already exists. Choose a different name, drop or replace the existing object, add the IF NOT EXISTS clause to tolerate pre-existing objects, or add the OR REFRESH clause to refresh the existing streaming table. SQLSTATE: 42P07 sdf_ext = spark.sql ( sql_code_ext ) sdf_ext.write.saveAsTable("abc") Continue reading...