You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2025/05/30 01:25:00 UTC
[jira] [Resolved] (SPARK-52312) Caching AppendData plan causes data to be inserted twice
[ https://issues.apache.org/jira/browse/SPARK-52312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-52312.
---------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
Issue resolved by pull request 51032
[https://github.com/apache/spark/pull/51032]
> Caching AppendData plan causes data to be inserted twice
> --------------------------------------------------------
>
> Key: SPARK-52312
> URL: https://issues.apache.org/jira/browse/SPARK-52312
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Tom van Bussel
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> We’ve identified an issue where a {{DataFrame}} created from an {{INSERT}} SQL statement and then cached will cause the {{INSERT}} to be executed twice. This happens because the logical plan for the {{INSERT}} ({{{}AppendData{}}}) doesn’t extend the {{IgnoreCachedData}} trait, so it isn’t ignored during caching as expected. As a result, the plan is cached and re-executed. We should fix this by ensuring that plans used by {{INSERT}} all extend the {{IgnoreCachedData}} trait.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org