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/05/21 04:04:16 UTC

[jira] [Updated] (SPARK-21036) Truncate action and writes should be in one transaction.

     [ https://issues.apache.org/jira/browse/SPARK-21036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-21036:
---------------------------------
    Labels: bulk-closed  (was: )

> Truncate action and writes should be in one transaction.
> --------------------------------------------------------
>
>                 Key: SPARK-21036
>                 URL: https://issues.apache.org/jira/browse/SPARK-21036
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0, 2.1.1
>            Reporter: Talat UYARER
>            Priority: Minor
>              Labels: bulk-closed
>
>  When I use truncate option like this: spark.range(10).write.mode("overwrite").option("truncate", true).jdbc(url, "table_with_index", prop)
> First table is truncated in a transaction later it will start write another transaction. This effects the data lost and found for a moment. 
> This actions should be in same transaction.



--
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