You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Alexey Marin (Jira)" <ji...@apache.org> on 2025/07/19 07:19:00 UTC

[jira] [Created] (SPARK-52878) Checkpointing a dataframe fails when it's based on another checkpoint that used a case-insentitive operation

Alexey Marin created SPARK-52878:
------------------------------------

             Summary: Checkpointing a dataframe fails when it's based on another checkpoint that used a case-insentitive operation
                 Key: SPARK-52878
                 URL: https://issues.apache.org/jira/browse/SPARK-52878
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Alexey Marin


The following code in spark-shell fails when the last checkpoint() is called:

{{spark.sql("set spark.sql.caseSensitive=false")}}
{{sc.setCheckpointDir("/tmp/foo") }}
{{val df_1 = spark.range(1).toDF("foo").checkpoint()}}
{{val df_2 = df_1.where("Foo == 0").checkpoint()}}
{{val df_union = df_1.unionByName(df_2).checkpoint()}}
{{df_union.show()}}

 

Removing any of the checkpoints, not basing df_2 on df_1, or fixing the casing in the filter all avoid triggering this error.



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