You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2019/10/08 05:44:13 UTC
[jira] [Resolved] (SPARK-25593) JDBC write Impala, `truncate` true
option in Overwrite mode for JDBC DataFrameWriter is dropping and creating
the table instead of truncating.
[ https://issues.apache.org/jira/browse/SPARK-25593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-25593.
----------------------------------
Resolution: Incomplete
> JDBC write Impala, `truncate` true option in Overwrite mode for JDBC DataFrameWriter is dropping and creating 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
> Priority: Major
> Labels: bulk-closed
>
> 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|https://issues.apache.org/jira/browse/SPARK-16463]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org