You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Szehon Ho (Jira)" <ji...@apache.org> on 2026/10/23 18:40:00 UTC

[jira] [Resolved] (SPARK-60413) Warn when evolving a DSv2 table that accepts any schema

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

Szehon Ho resolved SPARK-60413.
-------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

Issue resolved by pull request 59660
[https://github.com/apache/spark/pull/59660]

> Warn when evolving a DSv2 table that accepts any schema
> -------------------------------------------------------
>
>                 Key: SPARK-60413
>                 URL: https://issues.apache.org/jira/browse/SPARK-60413
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.4.0
>            Reporter: Szehon Ho
>            Assignee: Szehon Ho
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.4.0
>
>
> DSv2 tables can advertise both AUTOMATIC_SCHEMA_EVOLUTION and ACCEPT_ANY_SCHEMA. Automatic schema evolution applies requested schema changes during write analysis, while ACCEPT_ANY_SCHEMA skips Spark's native write schema resolution and alignment. A write can consequently fail after the table schema has been updated; a nontransactional catalog retains those changes.
> Add a warning immediately before Spark applies pending schema changes to a table reporting both capabilities. Identify the data source and table, explain the risk, and suggest disabling ACCEPT_ANY_SCHEMA. Emit the warning once for the batch of changes. Writes without pending evolution, or tables reporting only one capability, should remain quiet.
> Cover INSERT and MERGE through public DataFrame write APIs, including exact warning counts and persistent schema changes after a failed MERGE.
> Related connector discussion: https://github.com/apache/iceberg/pull/17957



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org