Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Incomplete
-
2.3.2
-
None
Description
Scenario :
Reading data from Impala using jdbc (cloudera jdbc41 driver) and writing to Impala with command write.mode(SaveMode.Overwrite).option("truncate", true)
Observed:
It's dropping and trying to create a new table. failing with exception
CAUSED BY: Exception: Syntax error
), Query: CREATE TABLE jdbc_spark.persons_write_200 ("personid" INTEGER , "lastname" TEXT , "firstname" TEXT , "address"
TEXT , "city" TEXT ).
Expected :
It should only truncate the table.
Note : With SaveMode.Append it's working absolutely fine.
relates to SPARK-16463