This is an automated email from the ASF dual-hosted git repository.
viirya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 789bf76b1b98 [SPARK-60294][SQL][DOC][FOLLOWUP] Move the columnarInput
migration guide entry to 4.2.2 and 4.3.1
789bf76b1b98 is described below
commit 789bf76b1b9886705247aff28341f8bb5e160f96
Author: Liang-Chi Hsieh <[email protected]>
AuthorDate: Tue Nov 10 20:36:48 2026 -0800
[SPARK-60294][SQL][DOC][FOLLOWUP] Move the columnarInput migration guide
entry to 4.2.2 and 4.3.1
### What changes were proposed in this pull request?
This is a doc follow-up of #59551 (SPARK-60294). It fixes where the
migration guide on master lists the
`spark.sql.execution.arrow.pythonUDF.columnarInput.enabled` default change:
- Remove the "Since Spark 4.2.1" entry from `Upgrading from Spark SQL 4.2.0
to 4.2.1`. The `PartitionPredicate` entry in that section stays.
- Add `Upgrading from Spark SQL 4.2.1 to 4.2.2` with the entry as it is on
`branch-4.2`.
- Add `Upgrading from Spark SQL 4.3.0 to 4.3.1` with the entry as it is on
`branch-4.3`.
The `Upgrading from Spark SQL 4.3 to 4.4` entry is unchanged.
### Why are the changes needed?
When #59551 merged, its migration guide entry was put under 4.2.0 to 4.2.1,
but v4.2.1 and v4.3.0 were released with the conf default still `true`. The
default change reached the maintenance lines only through the backports #60276
(`branch-4.3`, new section `4.3.0 to 4.3.1`) and #60277 (`branch-4.2`, entry in
`4.2.1 to 4.2.2`), so the fix versions are 4.4.0, 4.3.1 and 4.2.2. The entries
on master now match the ones on the maintenance branches.
### Does this PR introduce _any_ user-facing change?
No, documentation only.
### How was this patch tested?
Docs only. The two added entries were copied from `branch-4.2` and
`branch-4.3`. Checked with `git merge-tree` that the change applies cleanly to
`branch-4.x` and gives the same diff there.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
Closes #60317 from viirya/SPARK-60294-migration-guide-fix.
Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: Liang-Chi Hsieh <[email protected]>
skip-checks: true
---
docs/sql-migration-guide.md | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/docs/sql-migration-guide.md b/docs/sql-migration-guide.md
index 5d2750011456..1226be96d5fc 100644
--- a/docs/sql-migration-guide.md
+++ b/docs/sql-migration-guide.md
@@ -96,6 +96,10 @@ license: |
- Since Spark 4.4, `CREATE TABLE`, `REPLACE TABLE`, and `ALTER TABLE ... ADD
CONSTRAINT` on a Data Source V2 table fail with `SUBQUERY_IN_CHECK_CONSTRAINT`
when the condition of a CHECK constraint contains a subquery. `ALTER TABLE ...
ADD CONSTRAINT` keeps failing with
`UNSUPPORTED_SUBQUERY_EXPRESSION_CATEGORY.HIGHER_ORDER_FUNCTION` on a subquery
in a lambda function. Previously, most of these statements failed with
`INTERNAL_ERROR`, but a subquery that needed no resolution, such as `id [...]
- Since Spark 4.4, a function created by `CREATE FUNCTION ... AS 'class'`
whose class implements
`org.apache.spark.sql.connector.catalog.functions.UnboundFunction` and extends
either a Hive UDF class (such as `UDF` or `GenericUDF`) or
`org.apache.spark.sql.expressions.UserDefinedAggregateFunction` runs as a
DataSource V2 function instead of a Hive UDF or Spark UDAF, including functions
created in earlier versions. Its result type, argument coercion, and null
handling are defined by the V [...]
+## Upgrading from Spark SQL 4.3.0 to 4.3.1
+
+- Since Spark 4.3.1,
`spark.sql.execution.arrow.pythonUDF.columnarInput.enabled` is `false` by
default: Arrow-based Python UDFs read rows from an Arrow-backed upstream
operator, such as a Data Source V2 scan or the Arrow cache, as in Spark 4.1.
With columnar input, they kept the columns that they pass through until the
results of their batch came back from Python, and failed or returned wrong
results when the operator reused or released the vectors of the batch in the
meantime. To enable [...]
+
## Upgrading from Spark SQL 4.2 to 4.3
- Since Spark 4.3, map-typed arguments to distinct aggregates are normalized
by key order. As a result, `COUNT(DISTINCT m)` treats maps with the same
entries in different orders as the same value, and aggregates that return
distinct input values, such as `COLLECT_LIST(DISTINCT m)`, return maps sorted
by key.
@@ -125,9 +129,12 @@ license: |
Spark now propagates the evaluation error in these cases. Queries that
previously returned an incorrect result may therefore fail, and the error can
surface while the scan is built rather than while rows are read. Runtime
filters are unaffected because Spark still evaluates their condition after
pruning.
- Since Spark 4.3, when the preview flag
`spark.sql.timestampNanosTypes.enabled` is `true`, Parquet schema inference
maps `INT64 (TIMESTAMP(NANOS, true))` columns to `TIMESTAMP_LTZ(9)` and `INT64
(TIMESTAMP(NANOS, false))` columns to `TIMESTAMP_NTZ(9)`, instead of failing
with `PARQUET_TYPE_ILLEGAL`. `spark.sql.legacy.parquet.nanosAsLong` still takes
precedence: while it is `true`, these columns are inferred as `BIGINT` holding
the number of nanoseconds since the epoch, so leave it set t [...]
+## Upgrading from Spark SQL 4.2.1 to 4.2.2
+
+- Since Spark 4.2.2,
`spark.sql.execution.arrow.pythonUDF.columnarInput.enabled` is `false` by
default: Arrow-based Python UDFs read rows from an Arrow-backed upstream
operator, such as a Data Source V2 scan, as in Spark 4.1. With columnar input,
they kept the columns that they pass through until the results of their batch
came back from Python, and failed or returned wrong results when the operator
reused or released the vectors of the batch in the meantime. To enable columnar
input aga [...]
+
## Upgrading from Spark SQL 4.2.0 to 4.2.1
-- Since Spark 4.2.1,
`spark.sql.execution.arrow.pythonUDF.columnarInput.enabled` is `false` by
default: Arrow-based Python UDFs read rows from an Arrow-backed upstream
operator, such as a Data Source V2 scan or the Arrow cache, as in Spark 4.1.
With columnar input, they kept the columns that they pass through until the
results of their batch came back from Python, and failed or returned wrong
results when the operator reused or released the vectors of the batch in the
meantime. To enable [...]
- Spark 4.2.0 contains a correctness bug in the Data Source V2
`PartitionPredicate`. For scans, `PartitionPredicate` is the additional
predicate type Spark sends during the second pass of iterative pushdown. When a
data source opts into iterative pushdown by returning `true` from
`supportsIterativePushdown()`, Spark may call its pushdown API again with a
`PartitionPredicate` that evaluates a filter against the full partition key
described by `Table.partitioning()`. Spark also uses `Parti [...]
- For a `SELECT` over partitions `dep = 'hr'` and `dep = '1'` with the
filter `CAST(dep AS INT) = 1`, evaluating the predicate for `dep = 'hr'` fails.
Returning `true` keeps that partition, and because Spark removes the post-scan
filter, the query incorrectly returns its rows.
- For a metadata-only `DELETE` with the same condition, returning `true` can
delete the `dep = 'hr'` partition even though the condition never matches it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]