You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "rakesh (JIRA)" <ji...@apache.org> on 2018/10/02 07:31:00 UTC
[jira] [Created] (SPARK-25593) JDBC write Impala, `truncate` true
option in Overwrite mode for JDBC DataFrameWriter is dropping the table
instead of truncating.
rakesh created SPARK-25593:
------------------------------
Summary: JDBC write Impala, `truncate` true option in Overwrite mode for JDBC DataFrameWriter is dropping the table instead of truncating.
Key: SPARK-25593
URL: https://issues.apache.org/jira/browse/SPARK-25593
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.3.2
Reporter: rakesh
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org