Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
1.4.1, 1.5.1
-
None
-
None
-
Spark stand alone cluster
Description
DataFramewriter is not acknowledging Append Mode.
In case of Append Mode => It is verfiying if the table exists and creating a new table if it is not there and then Inserting data.
If the table exists check is failed for whatsover reason, it still assumes table doesnt exists and creates a new table.
As per my understanding, Append should perform "no DDL". It is okay to throw error saying "table doesnt exist for Inserts'. But creating a Table should not be allowed in Append Mode.
I believe we should do two things here
perform DDL => if and only if table exists check results "Not exists"
do not perform DDL => if SaveMode is Append
Attachments
Issue Links
- is a clone of
-
SPARK-11623 Sparksql-1.4.1 DataFrameWrite.jdbc() bug
- Resolved