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:34:00 UTC
[jira] [Updated] (SPARK-25593) JDBC write Impala, `truncate` true
option in Overwrite mode for JDBC DataFrameWriter is dropping the table
instead of truncating.
[ https://issues.apache.org/jira/browse/SPARK-25593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
rakesh updated SPARK-25593:
---------------------------
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|https://issues.apache.org/jira/browse/SPARK-16463]
was:
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.
> 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
> Priority: Major
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org