You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/02/07 19:27:51 UTC

(datafusion) branch asf-site updated: Publish built docs triggered by 15eea084fbada16a4fd4a04b5327c04f91b98ed4

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 767b12f7b0 Publish built docs triggered by 15eea084fbada16a4fd4a04b5327c04f91b98ed4
767b12f7b0 is described below

commit 767b12f7b075e8d9c64103fe31d887daf89279e9
Author: github-actions[bot] <gi...@users.noreply.github.com>
AuthorDate: Sat Feb 7 19:27:46 2026 +0000

    Publish built docs triggered by 15eea084fbada16a4fd4a04b5327c04f91b98ed4
---
 _sources/contributor-guide/api-health.md.txt       |    2 +-
 _sources/index.rst.txt                             |    2 +-
 _sources/library-user-guide/upgrading.md.txt       | 2438 ------------------
 .../library-user-guide/upgrading/46.0.0.md.txt     |  310 +++
 .../library-user-guide/upgrading/47.0.0.md.txt     |  135 +
 .../library-user-guide/upgrading/48.0.0.md.txt     |  244 ++
 .../library-user-guide/upgrading/48.0.1.md.txt     |   39 +
 .../library-user-guide/upgrading/49.0.0.md.txt     |  222 ++
 .../library-user-guide/upgrading/50.0.0.md.txt     |  330 +++
 .../library-user-guide/upgrading/51.0.0.md.txt     |  272 +++
 .../library-user-guide/upgrading/52.0.0.md.txt     |  669 +++++
 .../library-user-guide/upgrading/53.0.0.md.txt     |  377 +++
 .../library-user-guide/upgrading/index.rst.txt     |   32 +
 contributor-guide/api-health.html                  |   15 +-
 contributor-guide/architecture.html                |   13 +-
 .../architecture/dependency-graph.html             |   13 +-
 contributor-guide/communication.html               |   13 +-
 contributor-guide/development_environment.html     |   13 +-
 contributor-guide/governance.html                  |   13 +-
 .../gsoc/gsoc_application_guidelines_2025.html     |   13 +-
 .../gsoc/gsoc_project_ideas_2025.html              |   13 +-
 contributor-guide/gsoc/index.html                  |   13 +-
 contributor-guide/howtos.html                      |   13 +-
 contributor-guide/index.html                       |   13 +-
 contributor-guide/inviting.html                    |   13 +-
 contributor-guide/roadmap.html                     |   13 +-
 contributor-guide/specification/index.html         |   13 +-
 contributor-guide/specification/invariants.html    |   13 +-
 .../specification/output-field-name-semantic.html  |   13 +-
 contributor-guide/testing.html                     |   13 +-
 download.html                                      |   13 +-
 genindex.html                                      |   13 +-
 index.html                                         |   15 +-
 library-user-guide/building-logical-plans.html     |   13 +-
 library-user-guide/catalogs.html                   |   13 +-
 library-user-guide/custom-table-providers.html     |   13 +-
 library-user-guide/extending-operators.html        |   13 +-
 library-user-guide/extending-sql.html              |   13 +-
 library-user-guide/extensions.html                 |   17 +-
 library-user-guide/functions/adding-udfs.html      |   13 +-
 library-user-guide/functions/index.html            |   13 +-
 library-user-guide/functions/spark.html            |   13 +-
 library-user-guide/index.html                      |   17 +-
 library-user-guide/profiling.html                  |   13 +-
 library-user-guide/query-optimizer.html            |   13 +-
 library-user-guide/table-constraints.html          |   13 +-
 library-user-guide/upgrading.html                  | 2574 --------------------
 library-user-guide/upgrading/46.0.0.html           |  764 ++++++
 .../spark.html => upgrading/47.0.0.html}           |  148 +-
 library-user-guide/upgrading/48.0.0.html           |  727 ++++++
 .../spark.html => upgrading/48.0.1.html}           |   81 +-
 library-user-guide/upgrading/49.0.0.html           |  697 ++++++
 library-user-guide/upgrading/50.0.0.html           |  785 ++++++
 library-user-guide/upgrading/51.0.0.html           |  760 ++++++
 library-user-guide/upgrading/52.0.0.html           | 1099 +++++++++
 library-user-guide/upgrading/53.0.0.html           |  829 +++++++
 .../{functions => upgrading}/index.html            |   65 +-
 library-user-guide/using-the-dataframe-api.html    |   13 +-
 library-user-guide/using-the-sql-api.html          |   13 +-
 library-user-guide/working-with-exprs.html         |   13 +-
 objects.inv                                        |  Bin 2255 -> 2330 bytes
 search.html                                        |   13 +-
 searchindex.js                                     |    2 +-
 user-guide/arrow-introduction.html                 |   13 +-
 user-guide/cli/datasources.html                    |   13 +-
 user-guide/cli/functions.html                      |   13 +-
 user-guide/cli/index.html                          |   13 +-
 user-guide/cli/installation.html                   |   13 +-
 user-guide/cli/overview.html                       |   13 +-
 user-guide/cli/usage.html                          |   13 +-
 user-guide/concepts-readings-events.html           |   13 +-
 user-guide/configs.html                            |   13 +-
 user-guide/crate-configuration.html                |   13 +-
 user-guide/dataframe.html                          |   13 +-
 user-guide/example-usage.html                      |   13 +-
 user-guide/explain-usage.html                      |   13 +-
 user-guide/expressions.html                        |   13 +-
 user-guide/faq.html                                |   13 +-
 user-guide/features.html                           |   13 +-
 user-guide/introduction.html                       |   13 +-
 user-guide/metrics.html                            |   13 +-
 user-guide/sql/aggregate_functions.html            |   13 +-
 user-guide/sql/data_types.html                     |   13 +-
 user-guide/sql/ddl.html                            |   13 +-
 user-guide/sql/dml.html                            |   13 +-
 user-guide/sql/explain.html                        |   13 +-
 user-guide/sql/format_options.html                 |   13 +-
 user-guide/sql/index.html                          |   13 +-
 user-guide/sql/information_schema.html             |   13 +-
 user-guide/sql/operators.html                      |   13 +-
 user-guide/sql/prepared_statements.html            |   13 +-
 user-guide/sql/scalar_functions.html               |   13 +-
 user-guide/sql/select.html                         |   13 +-
 user-guide/sql/special_functions.html              |   13 +-
 user-guide/sql/struct_coercion.html                |   13 +-
 user-guide/sql/subqueries.html                     |   13 +-
 user-guide/sql/window_functions.html               |   13 +-
 97 files changed, 9376 insertions(+), 5162 deletions(-)

diff --git a/_sources/contributor-guide/api-health.md.txt b/_sources/contributor-guide/api-health.md.txt
index d811bc3574..ec9314ee82 100644
--- a/_sources/contributor-guide/api-health.md.txt
+++ b/_sources/contributor-guide/api-health.md.txt
@@ -32,7 +32,7 @@ When making changes that require DataFusion users to make changes to their code
 as part of an upgrade please consider adding documentation to the version
 specific [Upgrade Guide]
 
-[upgrade guide]: ../library-user-guide/upgrading.md
+[upgrade guide]: ../library-user-guide/upgrading/index
 
 ## Breaking Changes
 
diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt
index ae210de099..4d57faa0cb 100644
--- a/_sources/index.rst.txt
+++ b/_sources/index.rst.txt
@@ -134,7 +134,7 @@ To get started, see
    :caption: Library User Guide
    
    library-user-guide/index
-   library-user-guide/upgrading
+   library-user-guide/upgrading/index
    library-user-guide/extensions
    library-user-guide/using-the-sql-api
    library-user-guide/extending-sql
diff --git a/_sources/library-user-guide/upgrading.md.txt b/_sources/library-user-guide/upgrading.md.txt
deleted file mode 100644
index 182f2f0ef9..0000000000
--- a/_sources/library-user-guide/upgrading.md.txt
+++ /dev/null
@@ -1,2438 +0,0 @@
-<!---
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-
-# Upgrade Guides
-
-## DataFusion `53.0.0`
-
-**Note:** DataFusion `53.0.0` has not been released yet. The information provided
-*in this section pertains to features and changes that have already been merged
-*to the main branch and are awaiting release in this version. See [#19692] for
-\*more details.
-
-[#19692]: https://github.com/apache/datafusion/issues/19692
-
-### `FileSinkConfig` adds `file_output_mode`
-
-`FileSinkConfig` now includes a `file_output_mode: FileOutputMode` field to control
-single-file vs directory output behavior. Any code constructing `FileSinkConfig` via struct
-literals must initialize this field.
-
-The `FileOutputMode` enum has three variants:
-
-- `Automatic` (default): Infer output mode from the URL (extension/trailing `/` heuristic)
-- `SingleFile`: Write to a single file at the exact output path
-- `Directory`: Write to a directory with generated filenames
-
-**Before:**
-
-```rust,ignore
-FileSinkConfig {
-    // ...
-    file_extension: "parquet".into(),
-}
-```
-
-**After:**
-
-```rust,ignore
-use datafusion_datasource::file_sink_config::FileOutputMode;
-
-FileSinkConfig {
-    // ...
-    file_extension: "parquet".into(),
-    file_output_mode: FileOutputMode::Automatic,
-}
-```
-
-### `SimplifyInfo` trait removed, `SimplifyContext` now uses builder-style API
-
-The `SimplifyInfo` trait has been removed and replaced with the concrete `SimplifyContext` struct. This simplifies the expression simplification API and removes the need for trait objects.
-
-**Who is affected:**
-
-- Users who implemented custom `SimplifyInfo` implementations
-- Users who implemented `ScalarUDFImpl::simplify()` for custom scalar functions
-- Users who directly use `SimplifyContext` or `ExprSimplifier`
-
-**Breaking changes:**
-
-1. The `SimplifyInfo` trait has been removed entirely
-2. `SimplifyContext` no longer takes `&ExecutionProps` - it now uses a builder-style API with direct fields
-3. `ScalarUDFImpl::simplify()` now takes `&SimplifyContext` instead of `&dyn SimplifyInfo`
-4. Time-dependent function simplification (e.g., `now()`) is now optional - if `query_execution_start_time` is `None`, these functions won't be simplified
-
-**Migration guide:**
-
-If you implemented a custom `SimplifyInfo`:
-
-**Before:**
-
-```rust,ignore
-impl SimplifyInfo for MySimplifyInfo {
-    fn is_boolean_type(&self, expr: &Expr) -> Result<bool> { ... }
-    fn nullable(&self, expr: &Expr) -> Result<bool> { ... }
-    fn execution_props(&self) -> &ExecutionProps { ... }
-    fn get_data_type(&self, expr: &Expr) -> Result<DataType> { ... }
-}
-```
-
-**After:**
-
-Use `SimplifyContext` directly with the builder-style API:
-
-```rust,ignore
-let context = SimplifyContext::default()
-    .with_schema(schema)
-    .with_config_options(config_options)
-    .with_query_execution_start_time(Some(Utc::now())); // or use .with_current_time()
-```
-
-If you implemented `ScalarUDFImpl::simplify()`:
-
-**Before:**
-
-```rust,ignore
-fn simplify(
-    &self,
-    args: Vec<Expr>,
-    info: &dyn SimplifyInfo,
-) -> Result<ExprSimplifyResult> {
-    let now_ts = info.execution_props().query_execution_start_time;
-    // ...
-}
-```
-
-**After:**
-
-```rust,ignore
-fn simplify(
-    &self,
-    args: Vec<Expr>,
-    info: &SimplifyContext,
-) -> Result<ExprSimplifyResult> {
-    // query_execution_start_time is now Option<DateTime<Utc>>
-    // Return Original if time is not set (simplification skipped)
-    let Some(now_ts) = info.query_execution_start_time() else {
-        return Ok(ExprSimplifyResult::Original(args));
-    };
-    // ...
-}
-```
-
-If you created `SimplifyContext` from `ExecutionProps`:
-
-**Before:**
-
-```rust,ignore
-let props = ExecutionProps::new();
-let context = SimplifyContext::new(&props).with_schema(schema);
-```
-
-**After:**
-
-```rust,ignore
-let context = SimplifyContext::default()
-    .with_schema(schema)
-    .with_config_options(config_options)
-    .with_current_time(); // Sets query_execution_start_time to Utc::now()
-```
-
-See [`SimplifyContext` documentation](https://docs.rs/datafusion-expr/latest/datafusion_expr/simplify/struct.SimplifyContext.html) for more details.
-
-### Struct Casting Now Requires Field Name Overlap
-
-DataFusion's struct casting mechanism previously allowed casting between structs with differing field names if the field counts matched. This "positional fallback" behavior could silently misalign fields and cause data corruption.
-
-**Breaking Change:**
-
-Starting with DataFusion 53.0.0, struct casts now require **at least one overlapping field name** between the source and target structs. Casts without field name overlap are rejected at plan time with a clear error message.
-
-**Who is affected:**
-
-- Applications that cast between structs with no overlapping field names
-- Queries that rely on positional struct field mapping (e.g., casting `struct(x, y)` to `struct(a, b)` based solely on position)
-- Code that constructs or transforms struct columns programmatically
-
-**Migration guide:**
-
-If you encounter an error like:
-
-```text
-Cannot cast struct with 2 fields to 2 fields because there is no field name overlap
-```
-
-You must explicitly rename or map fields to ensure at least one field name matches. Here are common patterns:
-
-**Example 1: Source and target field names already match (Name-based casting)**
-
-**Success case (field names align):**
-
-```sql
--- source_col has schema: STRUCT<x INT, y INT>
--- Casting to the same field names succeeds (no-op or type validation only)
-SELECT CAST(source_col AS STRUCT<x INT, y INT>) FROM table1;
-```
-
-**Example 2: Source and target field names differ (Migration scenario)**
-
-**What fails now (no field name overlap):**
-
-```sql
--- source_col has schema: STRUCT<a INT, b INT>
--- This FAILS because there is no field name overlap:
--- ❌ SELECT CAST(source_col AS STRUCT<x INT, y INT>) FROM table1;
--- Error: Cannot cast struct with 2 fields to 2 fields because there is no field name overlap
-```
-
-**Migration options (must align names):**
-
-**Option A: Use struct constructor for explicit field mapping**
-
-```sql
--- source_col has schema: STRUCT<a INT, b INT>
--- Use STRUCT_CONSTRUCT with explicit field names
-SELECT STRUCT_CONSTRUCT(
-    'x', source_col.a,
-    'y', source_col.b
-) AS renamed_struct FROM table1;
-```
-
-**Option B: Rename in the cast target to match source names**
-
-```sql
--- source_col has schema: STRUCT<a INT, b INT>
--- Cast to target with matching field names
-SELECT CAST(source_col AS STRUCT<a INT, b INT>) FROM table1;
-```
-
-**Example 3: Using struct constructors in Rust API**
-
-If you need to map fields programmatically, build the target struct explicitly:
-
-```rust,ignore
-// Build the target struct with explicit field names
-let target_struct_type = DataType::Struct(vec![
-    FieldRef::new("x", DataType::Int32),
-    FieldRef::new("y", DataType::Utf8),
-]);
-
-// Use struct constructors rather than casting for field mapping
-// This makes the field mapping explicit and unambiguous
-// Use struct builders or row constructors that preserve your mapping logic
-```
-
-**Why this change:**
-
-1. **Safety:** Field names are now the primary contract for struct compatibility
-2. **Explicitness:** Prevents silent data misalignment caused by positional assumptions
-3. **Consistency:** Matches DuckDB's behavior and aligns with other SQL engines that enforce name-based matching
-4. **Debuggability:** Errors now appear at plan time rather than as silent data corruption
-
-See [Issue #19841](https://github.com/apache/datafusion/issues/19841) and [PR #19955](https://github.com/apache/datafusion/pull/19955) for more details.
-
-### `FilterExec` builder methods deprecated
-
-The following methods on `FilterExec` have been deprecated in favor of using `FilterExecBuilder`:
-
-- `with_projection()`
-- `with_batch_size()`
-
-**Who is affected:**
-
-- Users who create `FilterExec` instances and use these methods to configure them
-
-**Migration guide:**
-
-Use `FilterExecBuilder` instead of chaining method calls on `FilterExec`:
-
-**Before:**
-
-```rust,ignore
-let filter = FilterExec::try_new(predicate, input)?
-    .with_projection(Some(vec![0, 2]))?
-    .with_batch_size(8192)?;
-```
-
-**After:**
-
-```rust,ignore
-let filter = FilterExecBuilder::new(predicate, input)
-    .with_projection(Some(vec![0, 2]))
-    .with_batch_size(8192)
-    .build()?;
-```
-
-The builder pattern is more efficient as it computes properties once during `build()` rather than recomputing them for each method call.
-
-Note: `with_default_selectivity()` is not deprecated as it simply updates a field value and does not require the overhead of the builder pattern.
-
-### Protobuf conversion trait added
-
-A new trait, `PhysicalProtoConverterExtension`, has been added to the `datafusion-proto`
-crate. This is used for controlling the process of conversion of physical plans and
-expressions to and from their protobuf equivalents. The methods for conversion now
-require an additional parameter.
-
-The primary APIs for interacting with this crate have not been modified, so most users
-should not need to make any changes. If you do require this trait, you can use the
-`DefaultPhysicalProtoConverter` implementation.
-
-For example, to convert a sort expression protobuf node you can make the following
-updates:
-
-**Before:**
-
-```rust,ignore
-let sort_expr = parse_physical_sort_expr(
-    sort_proto,
-    ctx,
-    input_schema,
-    codec,
-);
-```
-
-**After:**
-
-```rust,ignore
-let converter = DefaultPhysicalProtoConverter {};
-let sort_expr = parse_physical_sort_expr(
-    sort_proto,
-    ctx,
-    input_schema,
-    codec,
-    &converter
-);
-```
-
-Similarly to convert from a physical sort expression into a protobuf node:
-
-**Before:**
-
-```rust,ignore
-let sort_proto = serialize_physical_sort_expr(
-    sort_expr,
-    codec,
-);
-```
-
-**After:**
-
-```rust,ignore
-let converter = DefaultPhysicalProtoConverter {};
-let sort_proto = serialize_physical_sort_expr(
-    sort_expr,
-    codec,
-    &converter,
-);
-```
-
-### `generate_series` and `range` table functions changed
-
-The `generate_series` and `range` table functions now return an empty set when the interval is invalid, instead of an error.
-This behavior is consistent with systems like PostgreSQL.
-
-Before:
-
-```sql
-> select * from generate_series(0, -1);
-Error during planning: Start is bigger than end, but increment is positive: Cannot generate infinite series
-
-> select * from range(0, -1);
-Error during planning: Start is bigger than end, but increment is positive: Cannot generate infinite series
-```
-
-Now:
-
-```sql
-> select * from generate_series(0, -1);
-+-------+
-| value |
-+-------+
-+-------+
-0 row(s) fetched.
-
-> select * from range(0, -1);
-+-------+
-| value |
-+-------+
-+-------+
-0 row(s) fetched.
-```
-
-## DataFusion `52.0.0`
-
-### Changes to DFSchema API
-
-To permit more efficient planning, several methods on `DFSchema` have been
-changed to return references to the underlying [`&FieldRef`] rather than
-[`&Field`]. This allows planners to more cheaply copy the references via
-`Arc::clone` rather than cloning the entire `Field` structure.
-
-You may need to change code to use `Arc::clone` instead of `.as_ref().clone()`
-directly on the `Field`. For example:
-
-```diff
-- let field = df_schema.field("my_column").as_ref().clone();
-+ let field = Arc::clone(df_schema.field("my_column"));
-```
-
-### ListingTableProvider now caches `LIST` commands
-
-In prior versions, `ListingTableProvider` would issue `LIST` commands to
-the underlying object store each time it needed to list files for a query.
-To improve performance, `ListingTableProvider` now caches the results of
-`LIST` commands for the lifetime of the `ListingTableProvider` instance or
-until a cache entry expires.
-
-Note that by default the cache has no expiration time, so if files are added or removed
-from the underlying object store, the `ListingTableProvider` will not see
-those changes until the `ListingTableProvider` instance is dropped and recreated.
-
-You can configure the maximum cache size and cache entry expiration time via configuration options:
-
-- `datafusion.runtime.list_files_cache_limit` - Limits the size of the cache in bytes
-- `datafusion.runtime.list_files_cache_ttl` - Limits the TTL (time-to-live) of an entry in seconds
-
-Detailed configuration information can be found in the [DataFusion Runtime
-Configuration](https://datafusion.apache.org/user-guide/configs.html#runtime-configuration-settings) user's guide.
-
-Caching can be disabled by setting the limit to 0:
-
-```sql
-SET datafusion.runtime.list_files_cache_limit TO "0K";
-```
-
-Note that the internal API has changed to use a trait `ListFilesCache` instead of a type alias.
-
-### `newlines_in_values` moved from `FileScanConfig` to `CsvOptions`
-
-The CSV-specific `newlines_in_values` configuration option has been moved from `FileScanConfig` to `CsvOptions`, as it only applies to CSV file parsing.
-
-**Who is affected:**
-
-- Users who set `newlines_in_values` via `FileScanConfigBuilder::with_newlines_in_values()`
-
-**Migration guide:**
-
-Set `newlines_in_values` in `CsvOptions` instead of on `FileScanConfigBuilder`:
-
-**Before:**
-
-```rust,ignore
-let source = Arc::new(CsvSource::new(file_schema.clone()));
-let config = FileScanConfigBuilder::new(object_store_url, source)
-    .with_newlines_in_values(true)
-    .build();
-```
-
-**After:**
-
-```rust,ignore
-let options = CsvOptions {
-    newlines_in_values: Some(true),
-    ..Default::default()
-};
-let source = Arc::new(CsvSource::new(file_schema.clone())
-    .with_csv_options(options));
-let config = FileScanConfigBuilder::new(object_store_url, source)
-    .build();
-```
-
-### Removal of `pyarrow` feature
-
-The `pyarrow` feature flag has been removed. This feature has been migrated to
-the `datafusion-python` repository since version `44.0.0`.
-
-### Refactoring of `FileSource` constructors and `FileScanConfigBuilder` to accept schemas upfront
-
-The way schemas are passed to file sources and scan configurations has been significantly refactored. File sources now require the schema (including partition columns) to be provided at construction time, and `FileScanConfigBuilder` no longer takes a separate schema parameter.
-
-**Who is affected:**
-
-- Users who create `FileScanConfig` or file sources (`ParquetSource`, `CsvSource`, `JsonSource`, `AvroSource`) directly
-- Users who implement custom `FileFormat` implementations
-
-**Key changes:**
-
-1. **FileSource constructors now require TableSchema**: All built-in file sources now take the schema in their constructor:
-
-   ```diff
-   - let source = ParquetSource::default();
-   + let source = ParquetSource::new(table_schema);
-   ```
-
-2. **FileScanConfigBuilder no longer takes schema as a parameter**: The schema is now passed via the FileSource:
-
-   ```diff
-   - FileScanConfigBuilder::new(url, schema, source)
-   + FileScanConfigBuilder::new(url, source)
-   ```
-
-3. **Partition columns are now part of TableSchema**: The `with_table_partition_cols()` method has been removed from `FileScanConfigBuilder`. Partition columns are now passed as part of the `TableSchema` to the FileSource constructor:
-
-   ```diff
-   + let table_schema = TableSchema::new(
-   +     file_schema,
-   +     vec![Arc::new(Field::new("date", DataType::Utf8, false))],
-   + );
-   + let source = ParquetSource::new(table_schema);
-     let config = FileScanConfigBuilder::new(url, source)
-   -     .with_table_partition_cols(vec![Field::new("date", DataType::Utf8, false)])
-         .with_file(partitioned_file)
-         .build();
-   ```
-
-4. **FileFormat::file_source() now takes TableSchema parameter**: Custom `FileFormat` implementations must be updated:
-   ```diff
-   impl FileFormat for MyFileFormat {
-   -   fn file_source(&self) -> Arc<dyn FileSource> {
-   +   fn file_source(&self, table_schema: TableSchema) -> Arc<dyn FileSource> {
-   -       Arc::new(MyFileSource::default())
-   +       Arc::new(MyFileSource::new(table_schema))
-       }
-   }
-   ```
-
-**Migration examples:**
-
-For Parquet files:
-
-```diff
-- let source = Arc::new(ParquetSource::default());
-- let config = FileScanConfigBuilder::new(url, schema, source)
-+ let table_schema = TableSchema::new(schema, vec![]);
-+ let source = Arc::new(ParquetSource::new(table_schema));
-+ let config = FileScanConfigBuilder::new(url, source)
-      .with_file(partitioned_file)
-      .build();
-```
-
-For CSV files with partition columns:
-
-```diff
-- let source = Arc::new(CsvSource::new(true, b',', b'"'));
-- let config = FileScanConfigBuilder::new(url, file_schema, source)
--     .with_table_partition_cols(vec![Field::new("year", DataType::Int32, false)])
-+ let options = CsvOptions {
-+     has_header: Some(true),
-+     delimiter: b',',
-+     quote: b'"',
-+     ..Default::default()
-+ };
-+ let table_schema = TableSchema::new(
-+     file_schema,
-+     vec![Arc::new(Field::new("year", DataType::Int32, false))],
-+ );
-+ let source = Arc::new(CsvSource::new(table_schema).with_csv_options(options));
-+ let config = FileScanConfigBuilder::new(url, source)
-      .build();
-```
-
-### Adaptive filter representation in Parquet filter pushdown
-
-As of Arrow 57.1.0, DataFusion uses a new adaptive filter strategy when
-evaluating pushed down filters for Parquet files. This new strategy improves
-performance for certain types of queries where the results of filtering are
-more efficiently represented with a bitmask rather than a selection.
-See [arrow-rs #5523] for more details.
-
-This change only applies to the built-in Parquet data source with filter-pushdown enabled (
-which is [not yet the default behavior]).
-
-You can disable the new behavior by setting the
-`datafusion.execution.parquet.force_filter_selections` [configuration setting] to true.
-
-```sql
-> set datafusion.execution.parquet.force_filter_selections = true;
-```
-
-[arrow-rs #5523]: https://github.com/apache/arrow-rs/issues/5523
-[configuration setting]: https://datafusion.apache.org/user-guide/configs.html
-[not yet the default behavior]: https://github.com/apache/datafusion/issues/3463
-
-### Statistics handling moved from `FileSource` to `FileScanConfig`
-
-Statistics are now managed directly by `FileScanConfig` instead of being delegated to `FileSource` implementations. This simplifies the `FileSource` trait and provides more consistent statistics handling across all file formats.
-
-**Who is affected:**
-
-- Users who have implemented custom `FileSource` implementations
-
-**Breaking changes:**
-
-Two methods have been removed from the `FileSource` trait:
-
-- `with_statistics(&self, statistics: Statistics) -> Arc<dyn FileSource>`
-- `statistics(&self) -> Result<Statistics>`
-
-**Migration guide:**
-
-If you have a custom `FileSource` implementation, you need to:
-
-1. Remove the `with_statistics` method implementation
-2. Remove the `statistics` method implementation
-3. Remove any internal state that was storing statistics
-
-**Before:**
-
-```rust,ignore
-#[derive(Clone)]
-struct MyCustomSource {
-    table_schema: TableSchema,
-    projected_statistics: Option<Statistics>,
-    // other fields...
-}
-
-impl FileSource for MyCustomSource {
-    fn with_statistics(&self, statistics: Statistics) -> Arc<dyn FileSource> {
-        Arc::new(Self {
-            table_schema: self.table_schema.clone(),
-            projected_statistics: Some(statistics),
-            // other fields...
-        })
-    }
-
-    fn statistics(&self) -> Result<Statistics> {
-        Ok(self.projected_statistics.clone().unwrap_or_else(||
-            Statistics::new_unknown(self.table_schema.file_schema())
-        ))
-    }
-
-    // other methods...
-}
-```
-
-**After:**
-
-```rust,ignore
-#[derive(Clone)]
-struct MyCustomSource {
-    table_schema: TableSchema,
-    // projected_statistics field removed
-    // other fields...
-}
-
-impl FileSource for MyCustomSource {
-    // with_statistics method removed
-    // statistics method removed
-
-    // other methods...
-}
-```
-
-**Accessing statistics:**
-
-Statistics are now accessed through `FileScanConfig` instead of `FileSource`:
-
-```diff
-- let stats = config.file_source.statistics()?;
-+ let stats = config.statistics();
-```
-
-Note that `FileScanConfig::statistics()` automatically marks statistics as inexact when filters are present, ensuring correctness when filters are pushed down.
-
-### Partition column handling moved out of `PhysicalExprAdapter`
-
-Partition column replacement is now a separate preprocessing step performed before expression rewriting via `PhysicalExprAdapter`. This change provides better separation of concerns and makes the adapter more focused on schema differences rather than partition value substitution.
-
-**Who is affected:**
-
-- Users who have custom implementations of `PhysicalExprAdapterFactory` that handle partition columns
-- Users who directly use the `FilePruner` API
-
-**Breaking changes:**
-
-1. `FilePruner::try_new()` signature changed: the `partition_fields` parameter has been removed since partition column handling is now done separately
-2. Partition column replacement must now be done via `replace_columns_with_literals()` before expressions are passed to the adapter
-
-**Migration guide:**
-
-If you have code that creates a `FilePruner` with partition fields:
-
-**Before:**
-
-```rust,ignore
-use datafusion_pruning::FilePruner;
-
-let pruner = FilePruner::try_new(
-    predicate,
-    file_schema,
-    partition_fields,  // This parameter is removed
-    file_stats,
-)?;
-```
-
-**After:**
-
-```rust,ignore
-use datafusion_pruning::FilePruner;
-
-// Partition fields are no longer needed
-let pruner = FilePruner::try_new(
-    predicate,
-    file_schema,
-    file_stats,
-)?;
-```
-
-If you have custom code that relies on `PhysicalExprAdapter` to handle partition columns, you must now call `replace_columns_with_literals()` separately:
-
-**Before:**
-
-```rust,ignore
-// Adapter handled partition column replacement internally
-let adapted_expr = adapter.rewrite(expr)?;
-```
-
-**After:**
-
-```rust,ignore
-use datafusion_physical_expr_adapter::replace_columns_with_literals;
-
-// Replace partition columns first
-let expr_with_literals = replace_columns_with_literals(expr, &partition_values)?;
-// Then apply the adapter
-let adapted_expr = adapter.rewrite(expr_with_literals)?;
-```
-
-### `build_row_filter` signature simplified
-
-The `build_row_filter` function in `datafusion-datasource-parquet` has been simplified to take a single schema parameter instead of two.
-The expectation is now that the filter has been adapted to the physical file schema (the arrow representation of the parquet file's schema) before being passed to this function
-using a `PhysicalExprAdapter` for example.
-
-**Who is affected:**
-
-- Users who call `build_row_filter` directly
-
-**Breaking changes:**
-
-The function signature changed from:
-
-```rust,ignore
-pub fn build_row_filter(
-    expr: &Arc<dyn PhysicalExpr>,
-    physical_file_schema: &SchemaRef,
-    predicate_file_schema: &SchemaRef,  // removed
-    metadata: &ParquetMetaData,
-    reorder_predicates: bool,
-    file_metrics: &ParquetFileMetrics,
-) -> Result<Option<RowFilter>>
-```
-
-To:
-
-```rust,ignore
-pub fn build_row_filter(
-    expr: &Arc<dyn PhysicalExpr>,
-    file_schema: &SchemaRef,
-    metadata: &ParquetMetaData,
-    reorder_predicates: bool,
-    file_metrics: &ParquetFileMetrics,
-) -> Result<Option<RowFilter>>
-```
-
-**Migration guide:**
-
-Remove the duplicate schema parameter from your call:
-
-```diff
-- build_row_filter(&predicate, &file_schema, &file_schema, metadata, reorder, metrics)
-+ build_row_filter(&predicate, &file_schema, metadata, reorder, metrics)
-```
-
-### Planner now requires explicit opt-in for WITHIN GROUP syntax
-
-The SQL planner now enforces the aggregate UDF contract more strictly: the
-`WITHIN GROUP (ORDER BY ...)` syntax is accepted only if the aggregate UDAF
-explicitly advertises support by returning `true` from
-`AggregateUDFImpl::supports_within_group_clause()`.
-
-Previously the planner forwarded a `WITHIN GROUP` clause to order-sensitive
-aggregates even when they did not implement ordered-set semantics, which could
-cause queries such as `SUM(x) WITHIN GROUP (ORDER BY x)` to plan successfully.
-This behavior was too permissive and has been changed to match PostgreSQL and
-the documented semantics.
-
-Migration: If your UDAF intentionally implements ordered-set semantics and
-wants to accept the `WITHIN GROUP` SQL syntax, update your implementation to
-return `true` from `supports_within_group_clause()` and handle the ordering
-semantics in your accumulator implementation. If your UDAF is merely
-order-sensitive (but not an ordered-set aggregate), do not advertise
-`supports_within_group_clause()` and clients should use alternative function
-signatures (for example, explicit ordering as a function argument) instead.
-
-### `AggregateUDFImpl::supports_null_handling_clause` now defaults to `false`
-
-This method specifies whether an aggregate function allows `IGNORE NULLS`/`RESPECT NULLS`
-during SQL parsing, with the implication it respects these configs during computation.
-
-Most DataFusion aggregate functions silently ignored this syntax in prior versions
-as they did not make use of it and it was permitted by default. We change this so
-only the few functions which do respect this clause (e.g. `array_agg`, `first_value`,
-`last_value`) need to implement it.
-
-Custom user defined aggregate functions will also error if this syntax is used,
-unless they explicitly declare support by overriding the method.
-
-For example, SQL parsing will now fail for queries such as this:
-
-```sql
-SELECT median(c1) IGNORE NULLS FROM table
-```
-
-Instead of silently succeeding.
-
-### API change for `CacheAccessor` trait
-
-The remove API no longer requires a mutable instance
-
-### FFI crate updates
-
-Many of the structs in the `datafusion-ffi` crate have been updated to allow easier
-conversion to the underlying trait types they represent. This simplifies some code
-paths, but also provides an additional improvement in cases where library code goes
-through a round trip via the foreign function interface.
-
-To update your code, suppose you have a `FFI_SchemaProvider` called `ffi_provider`
-and you wish to use this as a `SchemaProvider`. In the old approach you would do
-something like:
-
-```rust,ignore
-    let foreign_provider: ForeignSchemaProvider = ffi_provider.into();
-    let foreign_provider = Arc::new(foreign_provider) as Arc<dyn SchemaProvider>;
-```
-
-This code should now be written as:
-
-```rust,ignore
-    let foreign_provider: Arc<dyn SchemaProvider + Send> = ffi_provider.into();
-    let foreign_provider = foreign_provider as Arc<dyn SchemaProvider>;
-```
-
-For the case of user defined functions, the updates are similar but you
-may need to change the way you call the creation of the `ScalarUDF`.
-Aggregate and window functions follow the same pattern.
-
-Previously you may write:
-
-```rust,ignore
-    let foreign_udf: ForeignScalarUDF = ffi_udf.try_into()?;
-    let foreign_udf: ScalarUDF = foreign_udf.into();
-```
-
-Instead this should now be:
-
-```rust,ignore
-    let foreign_udf: Arc<dyn ScalarUDFImpl> = ffi_udf.into();
-    let foreign_udf = ScalarUDF::new_from_shared_impl(foreign_udf);
-```
-
-When creating any of the following structs, we now require the user to
-provide a `TaskContextProvider` and optionally a `LogicalExtensionCodec`:
-
-- `FFI_CatalogListProvider`
-- `FFI_CatalogProvider`
-- `FFI_SchemaProvider`
-- `FFI_TableProvider`
-- `FFI_TableFunction`
-
-Each of these structs has a `new()` and a `new_with_ffi_codec()` method for
-instantiation. For example, when you previously would write
-
-```rust,ignore
-   let table = Arc::new(MyTableProvider::new());
-   let ffi_table = FFI_TableProvider::new(table, None);
-```
-
-Now you will need to provide a `TaskContextProvider`. The most common
-implementation of this trait is `SessionContext`.
-
-```rust,ignore
-   let ctx = Arc::new(SessionContext::default());
-   let table = Arc::new(MyTableProvider::new());
-   let ffi_table = FFI_TableProvider::new(table, None, ctx, None);
-```
-
-The alternative function to create these structures may be more convenient
-if you are doing many of these operations. A `FFI_LogicalExtensionCodec` will
-store the `TaskContextProvider` as well.
-
-```rust,ignore
-   let codec = Arc::new(DefaultLogicalExtensionCodec {});
-   let ctx = Arc::new(SessionContext::default());
-   let ffi_codec = FFI_LogicalExtensionCodec::new(codec, None, ctx);
-   let table = Arc::new(MyTableProvider::new());
-   let ffi_table = FFI_TableProvider::new_with_ffi_codec(table, None, ffi_codec);
-```
-
-Additional information about the usage of the `TaskContextProvider` can be
-found in the crate README.
-
-Additionally, the FFI structure for Scalar UDF's no longer contains a
-`return_type` call. This code was not used since the `ForeignScalarUDF`
-struct implements the `return_field_from_args` instead.
-
-### Projection handling moved from FileScanConfig to FileSource
-
-Projection handling has been moved from `FileScanConfig` into `FileSource` implementations. This enables format-specific projection pushdown (e.g., Parquet can push down struct field access, Vortex can push down computed expressions into un-decoded data).
-
-**Who is affected:**
-
-- Users who have implemented custom `FileSource` implementations
-- Users who use `FileScanConfigBuilder::with_projection_indices` directly
-
-**Breaking changes:**
-
-1. **`FileSource::with_projection` replaced with `try_pushdown_projection`:**
-
-   The `with_projection(&self, config: &FileScanConfig) -> Arc<dyn FileSource>` method has been removed and replaced with `try_pushdown_projection(&self, projection: &ProjectionExprs) -> Result<Option<Arc<dyn FileSource>>>`.
-
-2. **`FileScanConfig.projection_exprs` field removed:**
-
-   Projections are now stored in the `FileSource` directly, not in `FileScanConfig`.
-   Various public helper methods that access projection information have been removed from `FileScanConfig`.
-
-3. **`FileScanConfigBuilder::with_projection_indices` now returns `Result<Self>`:**
-
-   This method can now fail if the projection pushdown fails.
-
-4. **`FileSource::create_file_opener` now returns `Result<Arc<dyn FileOpener>>`:**
-
-   Previously returned `Arc<dyn FileOpener>` directly.
-   Any `FileSource` implementation that may fail to create a `FileOpener` should now return an appropriate error.
-
-5. **`DataSource::try_swapping_with_projection` signature changed:**
-
-   Parameter changed from `&[ProjectionExpr]` to `&ProjectionExprs`.
-
-**Migration guide:**
-
-If you have a custom `FileSource` implementation:
-
-**Before:**
-
-```rust,ignore
-impl FileSource for MyCustomSource {
-    fn with_projection(&self, config: &FileScanConfig) -> Arc<dyn FileSource> {
-        // Apply projection from config
-        Arc::new(Self { /* ... */ })
-    }
-
-    fn create_file_opener(
-        &self,
-        object_store: Arc<dyn ObjectStore>,
-        base_config: &FileScanConfig,
-        partition: usize,
-    ) -> Arc<dyn FileOpener> {
-        Arc::new(MyOpener { /* ... */ })
-    }
-}
-```
-
-**After:**
-
-```rust,ignore
-impl FileSource for MyCustomSource {
-    fn try_pushdown_projection(
-        &self,
-        projection: &ProjectionExprs,
-    ) -> Result<Option<Arc<dyn FileSource>>> {
-        // Return None if projection cannot be pushed down
-        // Return Some(new_source) with projection applied if it can
-        Ok(Some(Arc::new(Self {
-            projection: Some(projection.clone()),
-            /* ... */
-        })))
-    }
-
-    fn projection(&self) -> Option<&ProjectionExprs> {
-        self.projection.as_ref()
-    }
-
-    fn create_file_opener(
-        &self,
-        object_store: Arc<dyn ObjectStore>,
-        base_config: &FileScanConfig,
-        partition: usize,
-    ) -> Result<Arc<dyn FileOpener>> {
-        Ok(Arc::new(MyOpener { /* ... */ }))
-    }
-}
-```
-
-We recommend you look at [#18627](https://github.com/apache/datafusion/pull/18627)
-that introduced these changes for more examples for how this was handled for the various built in file sources.
-
-We have added [`SplitProjection`](https://docs.rs/datafusion-datasource/latest/datafusion_datasource/projection/struct.SplitProjection.html) and [`ProjectionOpener`](https://docs.rs/datafusion-datasource/latest/datafusion_datasource/projection/struct.ProjectionOpener.html) helpers to make it easier to handle projections in your `FileSource` implementations.
-
-For file sources that can only handle simple column selections (not computed expressions), use the `SplitProjection` and `ProjectionOpener` helpers to split the projection into pushdownable and non-pushdownable parts:
-
-```rust,ignore
-use datafusion_datasource::projection::{SplitProjection, ProjectionOpener};
-
-// In try_pushdown_projection:
-let split = SplitProjection::new(projection, self.table_schema())?;
-// Use split.file_projection() for what to push down to the file format
-// The ProjectionOpener wrapper will handle the rest
-```
-
-**For `FileScanConfigBuilder` users:**
-
-```diff
-let config = FileScanConfigBuilder::new(url, source)
--   .with_projection_indices(Some(vec![0, 2, 3]))
-+   .with_projection_indices(Some(vec![0, 2, 3]))?
-    .build();
-```
-
-### `SchemaAdapter` and `SchemaAdapterFactory` completely removed
-
-Following the deprecation announced in [DataFusion 49.0.0](#deprecating-schemaadapterfactory-and-schemaadapter), `SchemaAdapterFactory` has been fully removed from Parquet scanning. This applies to both:
-
-The following symbols have been deprecated and will be removed in the next release:
-
-- `SchemaAdapter` trait
-- `SchemaAdapterFactory` trait
-- `SchemaMapper` trait
-- `SchemaMapping` struct
-- `DefaultSchemaAdapterFactory` struct
-
-These types were previously used to adapt record batch schemas during file reading.
-This functionality has been replaced by `PhysicalExprAdapterFactory`, which rewrites expressions at planning time rather than transforming batches at runtime.
-If you were using a custom `SchemaAdapterFactory` for schema adaptation (e.g., default column values, type coercion), you should now implement `PhysicalExprAdapterFactory` instead.
-See the [default column values example](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs) for how to implement a custom `PhysicalExprAdapterFactory`.
-
-**Migration guide:**
-
-If you implemented a custom `SchemaAdapterFactory`, migrate to `PhysicalExprAdapterFactory`.
-See the [default column values example](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs) for a complete implementation.
-
-## DataFusion `51.0.0`
-
-### `arrow` / `parquet` updated to 57.0.0
-
-### Upgrade to arrow `57.0.0` and parquet `57.0.0`
-
-This version of DataFusion upgrades the underlying Apache Arrow implementation
-to version `57.0.0`, including several dependent crates such as `prost`,
-`tonic`, `pyo3`, and `substrait`. . See the [release
-notes](https://github.com/apache/arrow-rs/releases/tag/57.0.0) for more details.
-
-### `MSRV` updated to 1.88.0
-
-The Minimum Supported Rust Version (MSRV) has been updated to [`1.88.0`].
-
-[`1.88.0`]: https://releases.rs/docs/1.88.0/
-
-### `FunctionRegistry` exposes two additional methods
-
-`FunctionRegistry` exposes two additional methods `udafs` and `udwfs` which expose set of registered user defined aggregation and window function names. To upgrade implement methods returning set of registered function names:
-
-```diff
-impl FunctionRegistry for FunctionRegistryImpl {
-      fn udfs(&self) -> HashSet<String> {
-         self.scalar_functions.keys().cloned().collect()
-     }
-+    fn udafs(&self) -> HashSet<String> {
-+        self.aggregate_functions.keys().cloned().collect()
-+    }
-+
-+    fn udwfs(&self) -> HashSet<String> {
-+        self.window_functions.keys().cloned().collect()
-+    }
-}
-```
-
-### `datafusion-proto` use `TaskContext` rather than `SessionContext` in physical plan serde methods
-
-There have been changes in the public API methods of `datafusion-proto` which handle physical plan serde.
-
-Methods like `physical_plan_from_bytes`, `parse_physical_expr` and similar, expect `TaskContext` instead of `SessionContext`
-
-```diff
-- let plan2 = physical_plan_from_bytes(&bytes, &ctx)?;
-+ let plan2 = physical_plan_from_bytes(&bytes, &ctx.task_ctx())?;
-```
-
-as `TaskContext` contains `RuntimeEnv` methods such as `try_into_physical_plan` will not have explicit `RuntimeEnv` parameter.
-
-```diff
-let result_exec_plan: Arc<dyn ExecutionPlan> = proto
--   .try_into_physical_plan(&ctx, runtime.deref(), &composed_codec)
-+.  .try_into_physical_plan(&ctx.task_ctx(), &composed_codec)
-```
-
-`PhysicalExtensionCodec::try_decode()` expects `TaskContext` instead of `FunctionRegistry`:
-
-```diff
-pub trait PhysicalExtensionCodec {
-    fn try_decode(
-        &self,
-        buf: &[u8],
-        inputs: &[Arc<dyn ExecutionPlan>],
--        registry: &dyn FunctionRegistry,
-+        ctx: &TaskContext,
-    ) -> Result<Arc<dyn ExecutionPlan>>;
-```
-
-See [issue #17601] for more details.
-
-[issue #17601]: https://github.com/apache/datafusion/issues/17601
-
-### `SessionState`'s `sql_to_statement` method takes `Dialect` rather than a `str`
-
-The `dialect` parameter of `sql_to_statement` method defined in `datafusion::execution::session_state::SessionState`
-has changed from `&str` to `&Dialect`.
-`Dialect` is an enum defined in the `datafusion-common`
-crate under the `config` module that provides type safety
-and better validation for SQL dialect selection
-
-### Reorganization of `ListingTable` into `datafusion-catalog-listing` crate
-
-There has been a long standing request to remove features such as `ListingTable`
-from the `datafusion` crate to support faster build times. The structs
-`ListingOptions`, `ListingTable`, and `ListingTableConfig` are now available
-within the `datafusion-catalog-listing` crate. These are re-exported in
-the `datafusion` crate, so this should be a minimal impact to existing users.
-
-See [issue #14462] and [issue #17713] for more details.
-
-[issue #14462]: https://github.com/apache/datafusion/issues/14462
-[issue #17713]: https://github.com/apache/datafusion/issues/17713
-
-### Reorganization of `ArrowSource` into `datafusion-datasource-arrow` crate
-
-To support [issue #17713] the `ArrowSource` code has been removed from
-the `datafusion` core crate into it's own crate, `datafusion-datasource-arrow`.
-This follows the pattern for the AVRO, CSV, JSON, and Parquet data sources.
-Users may need to update their paths to account for these changes.
-
-See [issue #17713] for more details.
-
-### `FileScanConfig::projection` renamed to `FileScanConfig::projection_exprs`
-
-The `projection` field in `FileScanConfig` has been renamed to `projection_exprs` and its type has changed from `Option<Vec<usize>>` to `Option<ProjectionExprs>`. This change enables more powerful projection pushdown capabilities by supporting arbitrary physical expressions rather than just column indices.
-
-**Impact on direct field access:**
-
-If you directly access the `projection` field:
-
-```rust,ignore
-let config: FileScanConfig = ...;
-let projection = config.projection;
-```
-
-You should update to:
-
-```rust,ignore
-let config: FileScanConfig = ...;
-let projection_exprs = config.projection_exprs;
-```
-
-**Impact on builders:**
-
-The `FileScanConfigBuilder::with_projection()` method has been deprecated in favor of `with_projection_indices()`:
-
-```diff
-let config = FileScanConfigBuilder::new(url, file_source)
--   .with_projection(Some(vec![0, 2, 3]))
-+   .with_projection_indices(Some(vec![0, 2, 3]))
-    .build();
-```
-
-Note: `with_projection()` still works but is deprecated and will be removed in a future release.
-
-**What is `ProjectionExprs`?**
-
-`ProjectionExprs` is a new type that represents a list of physical expressions for projection. While it can be constructed from column indices (which is what `with_projection_indices` does internally), it also supports arbitrary physical expressions, enabling advanced features like expression evaluation during scanning.
-
-You can access column indices from `ProjectionExprs` using its methods if needed:
-
-```rust,ignore
-let projection_exprs: ProjectionExprs = ...;
-// Get the column indices if the projection only contains simple column references
-let indices = projection_exprs.column_indices();
-```
-
-### `DESCRIBE query` support
-
-`DESCRIBE query` was previously an alias for `EXPLAIN query`, which outputs the
-_execution plan_ of the query. With this release, `DESCRIBE query` now outputs
-the computed _schema_ of the query, consistent with the behavior of `DESCRIBE table_name`.
-
-### `datafusion.execution.time_zone` default configuration changed
-
-The default value for `datafusion.execution.time_zone` previously was a string value of `+00:00` (GMT/Zulu time).
-This was changed to be an `Option<String>` with a default of `None`. If you want to change the timezone back
-to the previous value you can execute the sql:
-
-```sql
-SET
-TIMEZONE = '+00:00';
-```
-
-This change was made to better support using the default timezone in scalar UDF functions such as
-`now`, `current_date`, `current_time`, and `to_timestamp` among others.
-
-### Introduction of `TableSchema` and changes to `FileSource::with_schema()` method
-
-A new `TableSchema` struct has been introduced in the `datafusion-datasource` crate to better manage table schemas with partition columns. This struct helps distinguish between:
-
-- **File schema**: The schema of actual data files on disk
-- **Partition columns**: Columns derived from directory structure (e.g., Hive-style partitioning)
-- **Table schema**: The complete schema combining both file and partition columns
-
-As part of this change, the `FileSource::with_schema()` method signature has changed from accepting a `SchemaRef` to accepting a `TableSchema`.
-
-**Who is affected:**
-
-- Users who have implemented custom `FileSource` implementations will need to update their code
-- Users who only use built-in file sources (Parquet, CSV, JSON, AVRO, Arrow) are not affected
-
-**Migration guide for custom `FileSource` implementations:**
-
-```diff
- use datafusion_datasource::file::FileSource;
--use arrow::datatypes::SchemaRef;
-+use datafusion_datasource::TableSchema;
-
- impl FileSource for MyCustomSource {
--    fn with_schema(&self, schema: SchemaRef) -> Arc<dyn FileSource> {
-+    fn with_schema(&self, schema: TableSchema) -> Arc<dyn FileSource> {
-         Arc::new(Self {
--            schema: Some(schema),
-+            // Use schema.file_schema() to get the file schema without partition columns
-+            schema: Some(Arc::clone(schema.file_schema())),
-             ..self.clone()
-         })
-     }
- }
-```
-
-For implementations that need access to partition columns:
-
-```rust,ignore
-fn with_schema(&self, schema: TableSchema) -> Arc<dyn FileSource> {
-    Arc::new(Self {
-        file_schema: Arc::clone(schema.file_schema()),
-        partition_cols: schema.table_partition_cols().clone(),
-        table_schema: Arc::clone(schema.table_schema()),
-        ..self.clone()
-    })
-}
-```
-
-**Note**: Most `FileSource` implementations only need to store the file schema (without partition columns), as shown in the first example. The second pattern of storing all three schema components is typically only needed for advanced use cases where you need access to different schema representations for different operations (e.g., ParquetSource uses the file schema for building pruning predicates but needs the table schema for filter pushdown logic).
-
-**Using `TableSchema` directly:**
-
-If you're constructing a `FileScanConfig` or working with table schemas and partition columns, you can now use `TableSchema`:
-
-```rust
-use datafusion_datasource::TableSchema;
-use arrow::datatypes::{Schema, Field, DataType};
-use std::sync::Arc;
-
-// Create a TableSchema with partition columns
-let file_schema = Arc::new(Schema::new(vec![
-    Field::new("user_id", DataType::Int64, false),
-    Field::new("amount", DataType::Float64, false),
-]));
-
-let partition_cols = vec![
-    Arc::new(Field::new("date", DataType::Utf8, false)),
-    Arc::new(Field::new("region", DataType::Utf8, false)),
-];
-
-let table_schema = TableSchema::new(file_schema, partition_cols);
-
-// Access different schema representations
-let file_schema_ref = table_schema.file_schema();      // Schema without partition columns
-let full_schema = table_schema.table_schema();          // Complete schema with partition columns
-let partition_cols_ref = table_schema.table_partition_cols(); // Just the partition columns
-```
-
-### `AggregateUDFImpl::is_ordered_set_aggregate` has been renamed to `AggregateUDFImpl::supports_within_group_clause`
-
-This method has been renamed to better reflect the actual impact it has for aggregate UDF implementations.
-The accompanying `AggregateUDF::is_ordered_set_aggregate` has also been renamed to `AggregateUDF::supports_within_group_clause`.
-No functionality has been changed with regards to this method; it still refers only to permitting use of `WITHIN GROUP`
-SQL syntax for the aggregate function.
-
-## DataFusion `50.0.0`
-
-### ListingTable automatically detects Hive Partitioned tables
-
-DataFusion 50.0.0 automatically infers Hive partitions when using the `ListingTableFactory` and `CREATE EXTERNAL TABLE`. Previously,
-when creating a `ListingTable`, datasets that use Hive partitioning (e.g.
-`/table_root/column1=value1/column2=value2/data.parquet`) would not have the Hive columns reflected in
-the table's schema or data. The previous behavior can be
-restored by setting the `datafusion.execution.listing_table_factory_infer_partitions` configuration option to `false`.
-See [issue #17049] for more details.
-
-[issue #17049]: https://github.com/apache/datafusion/issues/17049
-
-### `MSRV` updated to 1.86.0
-
-The Minimum Supported Rust Version (MSRV) has been updated to [`1.86.0`].
-See [#17230] for details.
-
-[`1.86.0`]: https://releases.rs/docs/1.86.0/
-[#17230]: https://github.com/apache/datafusion/pull/17230
-
-### `ScalarUDFImpl`, `AggregateUDFImpl` and `WindowUDFImpl` traits now require `PartialEq`, `Eq`, and `Hash` traits
-
-To address error-proneness of `ScalarUDFImpl::equals`, `AggregateUDFImpl::equals`and
-`WindowUDFImpl::equals` methods and to make it easy to implement function equality correctly,
-the `equals` and `hash_value` methods have been removed from `ScalarUDFImpl`, `AggregateUDFImpl`
-and `WindowUDFImpl` traits. They are replaced the requirement to implement the `PartialEq`, `Eq`,
-and `Hash` traits on any type implementing `ScalarUDFImpl`, `AggregateUDFImpl` or `WindowUDFImpl`.
-Please see [issue #16677] for more details.
-
-Most of the scalar functions are stateless and have a `signature` field. These can be migrated
-using regular expressions
-
-- search for `\#\[derive\(Debug\)\](\n *(pub )?struct \w+ \{\n *signature\: Signature\,\n *\})`,
-- replace with `#[derive(Debug, PartialEq, Eq, Hash)]$1`,
-- review all the changes and make sure only function structs were changed.
-
-[issue #16677]: https://github.com/apache/datafusion/issues/16677
-
-### `AsyncScalarUDFImpl::invoke_async_with_args` returns `ColumnarValue`
-
-In order to enable single value optimizations and be consistent with other
-user defined function APIs, the `AsyncScalarUDFImpl::invoke_async_with_args` method now
-returns a `ColumnarValue` instead of a `ArrayRef`.
-
-To upgrade, change the return type of your implementation
-
-```rust
-# /* comment to avoid running
-impl AsyncScalarUDFImpl for AskLLM {
-    async fn invoke_async_with_args(
-        &self,
-        args: ScalarFunctionArgs,
-        _option: &ConfigOptions,
-    ) -> Result<ColumnarValue> {
-        ..
-      return array_ref; // old code
-    }
-}
-# */
-```
-
-To return a `ColumnarValue`
-
-```rust
-# /* comment to avoid running
-impl AsyncScalarUDFImpl for AskLLM {
-    async fn invoke_async_with_args(
-        &self,
-        args: ScalarFunctionArgs,
-        _option: &ConfigOptions,
-    ) -> Result<ColumnarValue> {
-        ..
-      return ColumnarValue::from(array_ref); // new code
-    }
-}
-# */
-```
-
-See [#16896](https://github.com/apache/datafusion/issues/16896) for more details.
-
-### `ProjectionExpr` changed from type alias to struct
-
-`ProjectionExpr` has been changed from a type alias to a struct with named fields to improve code clarity and maintainability.
-
-**Before:**
-
-```rust,ignore
-pub type ProjectionExpr = (Arc<dyn PhysicalExpr>, String);
-```
-
-**After:**
-
-```rust,ignore
-#[derive(Debug, Clone)]
-pub struct ProjectionExpr {
-    pub expr: Arc<dyn PhysicalExpr>,
-    pub alias: String,
-}
-```
-
-To upgrade your code:
-
-- Replace tuple construction `(expr, alias)` with `ProjectionExpr::new(expr, alias)` or `ProjectionExpr { expr, alias }`
-- Replace tuple field access `.0` and `.1` with `.expr` and `.alias`
-- Update pattern matching from `(expr, alias)` to `ProjectionExpr { expr, alias }`
-
-This mainly impacts use of `ProjectionExec`.
-
-This change was done in [#17398]
-
-[#17398]: https://github.com/apache/datafusion/pull/17398
-
-### `SessionState`, `SessionConfig`, and `OptimizerConfig` returns `&Arc<ConfigOptions>` instead of `&ConfigOptions`
-
-To provide broader access to `ConfigOptions` and reduce required clones, some
-APIs have been changed to return a `&Arc<ConfigOptions>` instead of a
-`&ConfigOptions`. This allows sharing the same `ConfigOptions` across multiple
-threads without needing to clone the entire `ConfigOptions` structure unless it
-is modified.
-
-Most users will not be impacted by this change since the Rust compiler typically
-automatically dereference the `Arc` when needed. However, in some cases you may
-have to change your code to explicitly call `as_ref()` for example, from
-
-```rust
-# /* comment to avoid running
-let optimizer_config: &ConfigOptions = state.options();
-#  */
-```
-
-To
-
-```rust
-# /* comment to avoid running
-let optimizer_config: &ConfigOptions = state.options().as_ref();
-#  */
-```
-
-See PR [#16970](https://github.com/apache/datafusion/pull/16970)
-
-### API Change to `AsyncScalarUDFImpl::invoke_async_with_args`
-
-The `invoke_async_with_args` method of the `AsyncScalarUDFImpl` trait has been
-updated to remove the `_option: &ConfigOptions` parameter to simplify the API
-now that the `ConfigOptions` can be accessed through the `ScalarFunctionArgs`
-parameter.
-
-You can change your code like this
-
-```rust
-# /* comment to avoid running
-impl AsyncScalarUDFImpl for AskLLM {
-    async fn invoke_async_with_args(
-        &self,
-        args: ScalarFunctionArgs,
-        _option: &ConfigOptions,
-    ) -> Result<ArrayRef> {
-        ..
-    }
-    ...
-}
-# */
-```
-
-To this:
-
-```rust
-# /* comment to avoid running
-
-impl AsyncScalarUDFImpl for AskLLM {
-    async fn invoke_async_with_args(
-        &self,
-        args: ScalarFunctionArgs,
-    ) -> Result<ArrayRef> {
-        let options = &args.config_options;
-        ..
-    }
-    ...
-}
-# */
-```
-
-### Schema Rewriter Module Moved to New Crate
-
-The `schema_rewriter` module and its associated symbols have been moved from `datafusion_physical_expr` to a new crate `datafusion_physical_expr_adapter`. This affects the following symbols:
-
-- `DefaultPhysicalExprAdapter`
-- `DefaultPhysicalExprAdapterFactory`
-- `PhysicalExprAdapter`
-- `PhysicalExprAdapterFactory`
-
-To upgrade, change your imports to:
-
-```rust
-use datafusion_physical_expr_adapter::{
-    DefaultPhysicalExprAdapter, DefaultPhysicalExprAdapterFactory,
-    PhysicalExprAdapter, PhysicalExprAdapterFactory
-};
-```
-
-### Upgrade to arrow `56.0.0` and parquet `56.0.0`
-
-This version of DataFusion upgrades the underlying Apache Arrow implementation
-to version `56.0.0`. See the [release notes](https://github.com/apache/arrow-rs/releases/tag/56.0.0)
-for more details.
-
-### Added `ExecutionPlan::reset_state`
-
-In order to fix a bug in DataFusion `49.0.0` where dynamic filters (currently only generated in the presence of a query such as `ORDER BY ... LIMIT ...`)
-produced incorrect results in recursive queries, a new method `reset_state` has been added to the `ExecutionPlan` trait.
-
-Any `ExecutionPlan` that needs to maintain internal state or references to other nodes in the execution plan tree should implement this method to reset that state.
-See [#17028] for more details and an example implementation for `SortExec`.
-
-[#17028]: https://github.com/apache/datafusion/pull/17028
-
-### Nested Loop Join input sort order cannot be preserved
-
-The Nested Loop Join operator has been rewritten from scratch to improve performance and memory efficiency. From the micro-benchmarks: this change introduces up to 5X speed-up and uses only 1% memory in extreme cases compared to the previous implementation.
-
-However, the new implementation cannot preserve input sort order like the old version could. This is a fundamental design trade-off that prioritizes performance and memory efficiency over sort order preservation.
-
-See [#16996] for details.
-
-[#16996]: https://github.com/apache/datafusion/pull/16996
-
-### Add `as_any()` method to `LazyBatchGenerator`
-
-To help with protobuf serialization, the `as_any()` method has been added to the `LazyBatchGenerator` trait. This means you will need to add `as_any()` to your implementation of `LazyBatchGenerator`:
-
-```rust
-# /* comment to avoid running
-
-impl LazyBatchGenerator for MyBatchGenerator {
-    fn as_any(&self) -> &dyn Any {
-        self
-    }
-
-    ...
-}
-
-# */
-```
-
-See [#17200](https://github.com/apache/datafusion/pull/17200) for details.
-
-### Refactored `DataSource::try_swapping_with_projection`
-
-We refactored `DataSource::try_swapping_with_projection` to simplify the method and minimize leakage across the ExecutionPlan <-> DataSource abstraction layer.
-Reimplementation for any custom `DataSource` should be relatively straightforward, see [#17395] for more details.
-
-[#17395]: https://github.com/apache/datafusion/pull/17395/
-
-### `FileOpenFuture` now uses `DataFusionError` instead of `ArrowError`
-
-The `FileOpenFuture` type alias has been updated to use `DataFusionError` instead of `ArrowError` for its error type. This change affects the `FileOpener` trait and any implementations that work with file streaming operations.
-
-**Before:**
-
-```rust,ignore
-pub type FileOpenFuture = BoxFuture<'static, Result<BoxStream<'static, Result<RecordBatch, ArrowError>>>>;
-```
-
-**After:**
-
-```rust,ignore
-pub type FileOpenFuture = BoxFuture<'static, Result<BoxStream<'static, Result<RecordBatch>>>>;
-```
-
-If you have custom implementations of `FileOpener` or work directly with `FileOpenFuture`, you'll need to update your error handling to use `DataFusionError` instead of `ArrowError`. The `FileStreamState` enum's `Open` variant has also been updated accordingly. See [#17397] for more details.
-
-[#17397]: https://github.com/apache/datafusion/pull/17397
-
-### FFI user defined aggregate function signature change
-
-The Foreign Function Interface (FFI) signature for user defined aggregate functions
-has been updated to call `return_field` instead of `return_type` on the underlying
-aggregate function. This is to support metadata handling with these aggregate functions.
-This change should be transparent to most users. If you have written unit tests to call
-`return_type` directly, you may need to change them to calling `return_field` instead.
-
-This update is a breaking change to the FFI API. The current best practice when using the
-FFI crate is to ensure that all libraries that are interacting are using the same
-underlying Rust version. Issue [#17374] has been opened to discuss stabilization of
-this interface so that these libraries can be used across different DataFusion versions.
-
-See [#17407] for details.
-
-[#17407]: https://github.com/apache/datafusion/pull/17407
-[#17374]: https://github.com/apache/datafusion/issues/17374
-
-### Added `PhysicalExpr::is_volatile_node`
-
-We added a method to `PhysicalExpr` to mark a `PhysicalExpr` as volatile:
-
-```rust,ignore
-impl PhysicalExpr for MyRandomExpr {
-  fn is_volatile_node(&self) -> bool {
-    true
-  }
-}
-```
-
-We've shipped this with a default value of `false` to minimize breakage but we highly recommend that implementers of `PhysicalExpr` opt into a behavior, even if it is returning `false`.
-
-You can see more discussion and example implementations in [#17351].
-
-[#17351]: https://github.com/apache/datafusion/pull/17351
-
-## DataFusion `49.0.0`
-
-### `MSRV` updated to 1.85.1
-
-The Minimum Supported Rust Version (MSRV) has been updated to [`1.85.1`]. See
-[#16728] for details.
-
-[`1.85.1`]: https://releases.rs/docs/1.85.1/
-[#16728]: https://github.com/apache/datafusion/pull/16728
-
-### `DataFusionError` variants are now `Box`ed
-
-To reduce the size of `DataFusionError`, several variants that were previously stored inline are now `Box`ed. This reduces the size of `Result<T, DataFusionError>` and thus stack usage and async state machine size. Please see [#16652] for more details.
-
-The following variants of `DataFusionError` are now boxed:
-
-- `ArrowError`
-- `SQL`
-- `SchemaError`
-
-This is a breaking change. Code that constructs or matches on these variants will need to be updated.
-
-For example, to create a `SchemaError`, instead of:
-
-```rust
-# /* comment to avoid running
-use datafusion_common::{DataFusionError, SchemaError};
-DataFusionError::SchemaError(
-  SchemaError::DuplicateUnqualifiedField { name: "foo".to_string() },
-  Box::new(None)
-)
-# */
-```
-
-You now need to `Box` the inner error:
-
-```rust
-# /* comment to avoid running
-use datafusion_common::{DataFusionError, SchemaError};
-DataFusionError::SchemaError(
-  Box::new(SchemaError::DuplicateUnqualifiedField { name: "foo".to_string() }),
-  Box::new(None)
-)
-# */
-```
-
-[#16652]: https://github.com/apache/datafusion/issues/16652
-
-### Metadata on Arrow Types is now represented by `FieldMetadata`
-
-Metadata from the Arrow `Field` is now stored using the `FieldMetadata`
-structure. In prior versions it was stored as both a `HashMap<String, String>`
-and a `BTreeMap<String, String>`. `FieldMetadata` is a easier to work with and
-is more efficient.
-
-To create `FieldMetadata` from a `Field`:
-
-```rust
-# /* comment to avoid running
- let metadata = FieldMetadata::from(&field);
-# */
-```
-
-To add metadata to a `Field`, use the `add_to_field` method:
-
-```rust
-# /* comment to avoid running
-let updated_field = metadata.add_to_field(field);
-# */
-```
-
-See [#16317] for details.
-
-[#16317]: https://github.com/apache/datafusion/pull/16317
-
-### New `datafusion.execution.spill_compression` configuration option
-
-DataFusion 49.0.0 adds support for compressing spill files when data is written to disk during spilling query execution. A new configuration option `datafusion.execution.spill_compression` controls the compression codec used.
-
-**Configuration:**
-
-- **Key**: `datafusion.execution.spill_compression`
-- **Default**: `uncompressed`
-- **Valid values**: `uncompressed`, `lz4_frame`, `zstd`
-
-**Usage:**
-
-```rust
-# /* comment to avoid running
-use datafusion::prelude::*;
-use datafusion_common::config::SpillCompression;
-
-let config = SessionConfig::default()
-    .with_spill_compression(SpillCompression::Zstd);
-let ctx = SessionContext::new_with_config(config);
-# */
-```
-
-Or via SQL:
-
-```sql
-SET datafusion.execution.spill_compression = 'zstd';
-```
-
-For more details about this configuration option, including performance trade-offs between different compression codecs, see the [Configuration Settings](../user-guide/configs.md) documentation.
-
-### Deprecated `map_varchar_to_utf8view` configuration option
-
-See [issue #16290](https://github.com/apache/datafusion/pull/16290) for more information
-The old configuration
-
-```text
-datafusion.sql_parser.map_varchar_to_utf8view
-```
-
-is now **deprecated** in favor of the unified option below.\
-If you previously used this to control only `VARCHAR`→`Utf8View` mapping, please migrate to `map_string_types_to_utf8view`.
-
----
-
-### New `map_string_types_to_utf8view` configuration option
-
-To unify **all** SQL string types (`CHAR`, `VARCHAR`, `TEXT`, `STRING`) to Arrow’s zero‑copy `Utf8View`, DataFusion 49.0.0 introduces:
-
-- **Key**: `datafusion.sql_parser.map_string_types_to_utf8view`
-- **Default**: `true`
-
-**Description:**
-
-- When **true** (default), **all** SQL string types are mapped to `Utf8View`, avoiding full‑copy UTF‑8 allocations and improving performance.
-- When **false**, DataFusion falls back to the legacy `Utf8` mapping for **all** string types.
-
-#### Examples
-
-```rust
-# /* comment to avoid running
-// Disable Utf8View mapping for all SQL string types
-let opts = datafusion::sql::planner::ParserOptions::new()
-    .with_map_string_types_to_utf8view(false);
-
-// Verify the setting is applied
-assert!(!opts.map_string_types_to_utf8view);
-# */
-```
-
----
-
-```sql
--- Disable Utf8View mapping globally
-SET datafusion.sql_parser.map_string_types_to_utf8view = false;
-
--- Now VARCHAR, CHAR, TEXT, STRING all use Utf8 rather than Utf8View
-CREATE TABLE my_table (a VARCHAR, b TEXT, c STRING);
-DESCRIBE my_table;
-```
-
-### Deprecating `SchemaAdapterFactory` and `SchemaAdapter`
-
-We are moving away from converting data (using `SchemaAdapter`) to converting the expressions themselves (which is more efficient and flexible).
-
-See [issue #16800](https://github.com/apache/datafusion/issues/16800) for more information
-The first place this change has taken place is in predicate pushdown for Parquet.
-By default if you do not use a custom `SchemaAdapterFactory` we will use expression conversion instead.
-If you do set a custom `SchemaAdapterFactory` we will continue to use it but emit a warning about that code path being deprecated.
-
-To resolve this you need to implement a custom `PhysicalExprAdapterFactory` and use that instead of a `SchemaAdapterFactory`.
-See the [default values](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs) for an example of how to do this.
-Opting into the new APIs will set you up for future changes since we plan to expand use of `PhysicalExprAdapterFactory` to other areas of DataFusion.
-
-See [#16800] for details.
-
-[#16800]: https://github.com/apache/datafusion/issues/16800
-
-### `TableParquetOptions` Updated
-
-The `TableParquetOptions` struct has a new `crypto` field to specify encryption
-options for Parquet files. The `ParquetEncryptionOptions` implements `Default`
-so you can upgrade your existing code like this:
-
-```rust
-# /* comment to avoid running
-TableParquetOptions {
-  global,
-  column_specific_options,
-  key_value_metadata,
-}
-# */
-```
-
-To this:
-
-```rust
-# /* comment to avoid running
-TableParquetOptions {
-  global,
-  column_specific_options,
-  key_value_metadata,
-  crypto: Default::default(), // New crypto field
-}
-# */
-```
-
-## DataFusion `48.0.1`
-
-### `datafusion.execution.collect_statistics` now defaults to `true`
-
-The default value of the `datafusion.execution.collect_statistics` configuration
-setting is now true. This change impacts users that use that value directly and relied
-on its default value being `false`.
-
-This change also restores the default behavior of `ListingTable` to its previous. If you use it directly
-you can maintain the current behavior by overriding the default value in your code.
-
-```rust
-# /* comment to avoid running
-ListingOptions::new(Arc::new(ParquetFormat::default()))
-    .with_collect_stat(false)
-    // other options
-# */
-```
-
-## DataFusion `48.0.0`
-
-### `Expr::Literal` has optional metadata
-
-The [`Expr::Literal`] variant now includes optional metadata, which allows for
-carrying through Arrow field metadata to support extension types and other uses.
-
-This means code such as
-
-```rust
-# /* comment to avoid running
-match expr {
-...
-  Expr::Literal(scalar) => ...
-...
-}
-#  */
-```
-
-Should be updated to:
-
-```rust
-# /* comment to avoid running
-match expr {
-...
-  Expr::Literal(scalar, _metadata) => ...
-...
-}
-#  */
-```
-
-Likewise constructing `Expr::Literal` requires metadata as well. The [`lit`] function
-has not changed and returns an `Expr::Literal` with no metadata.
-
-[`expr::literal`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/enum.Expr.html#variant.Literal
-[`lit`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/fn.lit.html
-
-### `Expr::WindowFunction` is now `Box`ed
-
-`Expr::WindowFunction` is now a `Box<WindowFunction>` instead of a `WindowFunction` directly.
-This change was made to reduce the size of `Expr` and improve performance when
-planning queries (see [details on #16207]).
-
-This is a breaking change, so you will need to update your code if you match
-on `Expr::WindowFunction` directly. For example, if you have code like this:
-
-```rust
-# /* comment to avoid running
-match expr {
-  Expr::WindowFunction(WindowFunction {
-    params:
-      WindowFunctionParams {
-       partition_by,
-       order_by,
-      ..
-    }
-  }) => {
-    // Use partition_by and order_by as needed
-  }
-  _ => {
-    // other expr
-  }
-}
-# */
-```
-
-You will need to change it to:
-
-```rust
-# /* comment to avoid running
-match expr {
-  Expr::WindowFunction(window_fun) => {
-    let WindowFunction {
-      fun,
-      params: WindowFunctionParams {
-        args,
-        partition_by,
-        ..
-        },
-    } = window_fun.as_ref();
-    // Use partition_by and order_by as needed
-  }
-  _ => {
-    // other expr
-  }
-}
-#  */
-```
-
-[details on #16207]: https://github.com/apache/datafusion/pull/16207#issuecomment-2922659103
-
-### The `VARCHAR` SQL type is now represented as `Utf8View` in Arrow
-
-The mapping of the SQL `VARCHAR` type has been changed from `Utf8` to `Utf8View`
-which improves performance for many string operations. You can read more about
-`Utf8View` in the [DataFusion blog post on German-style strings]
-
-[datafusion blog post on german-style strings]: https://datafusion.apache.org/blog/2024/09/13/string-view-german-style-strings-part-1/
-
-This means that when you create a table with a `VARCHAR` column, it will now use
-`Utf8View` as the underlying data type. For example:
-
-```sql
-> CREATE TABLE my_table (my_column VARCHAR);
-0 row(s) fetched.
-Elapsed 0.001 seconds.
-
-> DESCRIBE my_table;
-+-------------+-----------+-------------+
-| column_name | data_type | is_nullable |
-+-------------+-----------+-------------+
-| my_column   | Utf8View  | YES         |
-+-------------+-----------+-------------+
-1 row(s) fetched.
-Elapsed 0.000 seconds.
-```
-
-You can restore the old behavior of using `Utf8` by changing the
-`datafusion.sql_parser.map_varchar_to_utf8view` configuration setting. For
-example
-
-```sql
-> set datafusion.sql_parser.map_varchar_to_utf8view = false;
-0 row(s) fetched.
-Elapsed 0.001 seconds.
-
-> CREATE TABLE my_table (my_column VARCHAR);
-0 row(s) fetched.
-Elapsed 0.014 seconds.
-
-> DESCRIBE my_table;
-+-------------+-----------+-------------+
-| column_name | data_type | is_nullable |
-+-------------+-----------+-------------+
-| my_column   | Utf8      | YES         |
-+-------------+-----------+-------------+
-1 row(s) fetched.
-Elapsed 0.004 seconds.
-```
-
-### `ListingOptions` default for `collect_stat` changed from `true` to `false`
-
-This makes it agree with the default for `SessionConfig`.
-Most users won't be impacted by this change but if you were using `ListingOptions` directly
-and relied on the default value of `collect_stat` being `true`, you will need to
-explicitly set it to `true` in your code.
-
-```rust
-# /* comment to avoid running
-ListingOptions::new(Arc::new(ParquetFormat::default()))
-    .with_collect_stat(true)
-    // other options
-# */
-```
-
-### Processing `FieldRef` instead of `DataType` for user defined functions
-
-In order to support metadata handling and extension types, user defined functions are
-now switching to traits which use `FieldRef` rather than a `DataType` and nullability.
-This gives a single interface to both of these parameters and additionally allows
-access to metadata fields, which can be used for extension types.
-
-To upgrade structs which implement `ScalarUDFImpl`, if you have implemented
-`return_type_from_args` you need instead to implement `return_field_from_args`.
-If your functions do not need to handle metadata, this should be straightforward
-repackaging of the output data into a `FieldRef`. The name you specify on the
-field is not important. It will be overwritten during planning. `ReturnInfo`
-has been removed, so you will need to remove all references to it.
-
-`ScalarFunctionArgs` now contains a field called `arg_fields`. You can use this
-to access the metadata associated with the columnar values during invocation.
-
-To upgrade user defined aggregate functions, there is now a function
-`return_field` that will allow you to specify both metadata and nullability of
-your function. You are not required to implement this if you do not need to
-handle metadata.
-
-The largest change to aggregate functions happens in the accumulator arguments.
-Both the `AccumulatorArgs` and `StateFieldsArgs` now contain `FieldRef` rather
-than `DataType`.
-
-To upgrade window functions, `ExpressionArgs` now contains input fields instead
-of input data types. When setting these fields, the name of the field is
-not important since this gets overwritten during the planning stage. All you
-should need to do is wrap your existing data types in fields with nullability
-set depending on your use case.
-
-### Physical Expression return `Field`
-
-To support the changes to user defined functions processing metadata, the
-`PhysicalExpr` trait, which now must specify a return `Field` based on the input
-schema. To upgrade structs which implement `PhysicalExpr` you need to implement
-the `return_field` function. There are numerous examples in the `physical-expr`
-crate.
-
-### `FileFormat::supports_filters_pushdown` replaced with `FileSource::try_pushdown_filters`
-
-To support more general filter pushdown, the `FileFormat::supports_filters_pushdown` was replaced with
-`FileSource::try_pushdown_filters`.
-If you implemented a custom `FileFormat` that uses a custom `FileSource` you will need to implement
-`FileSource::try_pushdown_filters`.
-See `ParquetSource::try_pushdown_filters` for an example of how to implement this.
-
-`FileFormat::supports_filters_pushdown` has been removed.
-
-### `ParquetExec`, `AvroExec`, `CsvExec`, `JsonExec` Removed
-
-`ParquetExec`, `AvroExec`, `CsvExec`, and `JsonExec` were deprecated in
-DataFusion 46 and are removed in DataFusion 48. This is sooner than the normal
-process described in the [API Deprecation Guidelines] because all the tests
-cover the new `DataSourceExec` rather than the older structures. As we evolve
-`DataSource`, the old structures began to show signs of "bit rotting" (not
-working but no one knows due to lack of test coverage).
-
-[api deprecation guidelines]: https://datafusion.apache.org/contributor-guide/api-health.html#deprecation-guidelines
-
-### `PartitionedFile` added as an argument to the `FileOpener` trait
-
-This is necessary to properly fix filter pushdown for filters that combine partition
-columns and file columns (e.g. `day = username['dob']`).
-
-If you implemented a custom `FileOpener` you will need to add the `PartitionedFile` argument
-but are not required to use it in any way.
-
-## DataFusion `47.0.0`
-
-This section calls out some of the major changes in the `47.0.0` release of DataFusion.
-
-Here are some example upgrade PRs that demonstrate changes required when upgrading from DataFusion 46.0.0:
-
-- [delta-rs Upgrade to `47.0.0`](https://github.com/delta-io/delta-rs/pull/3378)
-- [DataFusion Comet Upgrade to `47.0.0`](https://github.com/apache/datafusion-comet/pull/1563)
-- [Sail Upgrade to `47.0.0`](https://github.com/lakehq/sail/pull/434)
-
-### Upgrades to `arrow-rs` and `arrow-parquet` 55.0.0 and `object_store` 0.12.0
-
-Several APIs are changed in the underlying arrow and parquet libraries to use a
-`u64` instead of `usize` to better support WASM (See [#7371] and [#6961])
-
-Additionally `ObjectStore::list` and `ObjectStore::list_with_offset` have been changed to return `static` lifetimes (See [#6619])
-
-[#6619]: https://github.com/apache/arrow-rs/pull/6619
-[#7371]: https://github.com/apache/arrow-rs/pull/7371
-
-This requires converting from `usize` to `u64` occasionally as well as changes to `ObjectStore` implementations such as
-
-```rust
-# /* comment to avoid running
-impl Objectstore {
-    ...
-    // The range is now a u64 instead of usize
-    async fn get_range(&self, location: &Path, range: Range<u64>) -> ObjectStoreResult<Bytes> {
-        self.inner.get_range(location, range).await
-    }
-    ...
-    // the lifetime is now 'static instead of `_ (meaning the captured closure can't contain references)
-    // (this also applies to list_with_offset)
-    fn list(&self, prefix: Option<&Path>) -> BoxStream<'static, ObjectStoreResult<ObjectMeta>> {
-        self.inner.list(prefix)
-    }
-}
-# */
-```
-
-The `ParquetObjectReader` has been updated to no longer require the object size
-(it can be fetched using a single suffix request). See [#7334] for details
-
-[#7334]: https://github.com/apache/arrow-rs/pull/7334
-
-Pattern in DataFusion `46.0.0`:
-
-```rust
-# /* comment to avoid running
-let meta: ObjectMeta = ...;
-let reader = ParquetObjectReader::new(store, meta);
-# */
-```
-
-Pattern in DataFusion `47.0.0`:
-
-```rust
-# /* comment to avoid running
-let meta: ObjectMeta = ...;
-let reader = ParquetObjectReader::new(store, location)
-  .with_file_size(meta.size);
-# */
-```
-
-### `DisplayFormatType::TreeRender`
-
-DataFusion now supports [`tree` style explain plans]. Implementations of
-`Executionplan` must also provide a description in the
-`DisplayFormatType::TreeRender` format. This can be the same as the existing
-`DisplayFormatType::Default`.
-
-[`tree` style explain plans]: https://datafusion.apache.org/user-guide/sql/explain.html#tree-format-default
-
-### Removed Deprecated APIs
-
-Several APIs have been removed in this release. These were either deprecated
-previously or were hard to use correctly such as the multiple different
-`ScalarUDFImpl::invoke*` APIs. See [#15130], [#15123], and [#15027] for more
-details.
-
-[#15130]: https://github.com/apache/datafusion/pull/15130
-[#15123]: https://github.com/apache/datafusion/pull/15123
-[#15027]: https://github.com/apache/datafusion/pull/15027
-
-### `FileScanConfig` --> `FileScanConfigBuilder`
-
-Previously, `FileScanConfig::build()` directly created ExecutionPlans. In
-DataFusion 47.0.0 this has been changed to use `FileScanConfigBuilder`. See
-[#15352] for details.
-
-[#15352]: https://github.com/apache/datafusion/pull/15352
-
-Pattern in DataFusion `46.0.0`:
-
-```rust
-# /* comment to avoid running
-let plan = FileScanConfig::new(url, schema, Arc::new(file_source))
-  .with_statistics(stats)
-  ...
-  .build()
-# */
-```
-
-Pattern in DataFusion `47.0.0`:
-
-```rust
-# /* comment to avoid running
-let config = FileScanConfigBuilder::new(url, Arc::new(file_source))
-  .with_statistics(stats)
-  ...
-  .build();
-let scan = DataSourceExec::from_data_source(config);
-# */
-```
-
-## DataFusion `46.0.0`
-
-### Use `invoke_with_args` instead of `invoke()` and `invoke_batch()`
-
-DataFusion is moving to a consistent API for invoking ScalarUDFs,
-[`ScalarUDFImpl::invoke_with_args()`], and deprecating
-[`ScalarUDFImpl::invoke()`], [`ScalarUDFImpl::invoke_batch()`], and [`ScalarUDFImpl::invoke_no_args()`]
-
-If you see errors such as the following it means the older APIs are being used:
-
-```text
-This feature is not implemented: Function concat does not implement invoke but called
-```
-
-To fix this error, use [`ScalarUDFImpl::invoke_with_args()`] instead, as shown
-below. See [PR 14876] for an example.
-
-Given existing code like this:
-
-```rust
-# /* comment to avoid running
-impl ScalarUDFImpl for SparkConcat {
-...
-    fn invoke_batch(&self, args: &[ColumnarValue], number_rows: usize) -> Result<ColumnarValue> {
-        if args
-            .iter()
-            .any(|arg| matches!(arg.data_type(), DataType::List(_)))
-        {
-            ArrayConcat::new().invoke_batch(args, number_rows)
-        } else {
-            ConcatFunc::new().invoke_batch(args, number_rows)
-        }
-    }
-}
-# */
-```
-
-To
-
-```rust
-# /* comment to avoid running
-impl ScalarUDFImpl for SparkConcat {
-    ...
-    fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> {
-        if args
-            .args
-            .iter()
-            .any(|arg| matches!(arg.data_type(), DataType::List(_)))
-        {
-            ArrayConcat::new().invoke_with_args(args)
-        } else {
-            ConcatFunc::new().invoke_with_args(args)
-        }
-    }
-}
- # */
-```
-
-[`scalarudfimpl::invoke()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke
-[`scalarudfimpl::invoke_batch()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_batch
-[`scalarudfimpl::invoke_no_args()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_no_args
-[`scalarudfimpl::invoke_with_args()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_with_args
-[pr 14876]: https://github.com/apache/datafusion/pull/14876
-
-### `ParquetExec`, `AvroExec`, `CsvExec`, `JsonExec` deprecated
-
-DataFusion 46 has a major change to how the built in DataSources are organized.
-Instead of individual `ExecutionPlan`s for the different file formats they now
-all use `DataSourceExec` and the format specific information is embodied in new
-traits `DataSource` and `FileSource`.
-
-Here is more information about
-
-- [Design Ticket]
-- Change PR [PR #14224]
-- Example of an Upgrade [PR in delta-rs]
-
-[design ticket]: https://github.com/apache/datafusion/issues/13838
-[pr #14224]: https://github.com/apache/datafusion/pull/14224
-[pr in delta-rs]: https://github.com/delta-io/delta-rs/pull/3261
-
-### Cookbook: Changes to `ParquetExecBuilder`
-
-Code that looks for `ParquetExec` like this will no longer work:
-
-```rust
-# /* comment to avoid running
-    if let Some(parquet_exec) = plan.as_any().downcast_ref::<ParquetExec>() {
-        // Do something with ParquetExec here
-    }
-# */
-```
-
-Instead, with `DataSourceExec`, the same information is now on `FileScanConfig` and
-`ParquetSource`. The equivalent code is
-
-```rust
-# /* comment to avoid running
-if let Some(datasource_exec) = plan.as_any().downcast_ref::<DataSourceExec>() {
-  if let Some(scan_config) = datasource_exec.data_source().as_any().downcast_ref::<FileScanConfig>() {
-    // FileGroups, and other information is on the FileScanConfig
-    // parquet
-    if let Some(parquet_source) = scan_config.file_source.as_any().downcast_ref::<ParquetSource>()
-    {
-      // Information on PruningPredicates and parquet options are here
-    }
-}
-# */
-```
-
-### Cookbook: Changes to `ParquetExecBuilder`
-
-Likewise code that builds `ParquetExec` using the `ParquetExecBuilder` such as
-the following must be changed:
-
-```rust
-# /* comment to avoid running
-let mut exec_plan_builder = ParquetExecBuilder::new(
-    FileScanConfig::new(self.log_store.object_store_url(), file_schema)
-        .with_projection(self.projection.cloned())
-        .with_limit(self.limit)
-        .with_table_partition_cols(table_partition_cols),
-)
-.with_schema_adapter_factory(Arc::new(DeltaSchemaAdapterFactory {}))
-.with_table_parquet_options(parquet_options);
-
-// Add filter
-if let Some(predicate) = logical_filter {
-    if config.enable_parquet_pushdown {
-        exec_plan_builder = exec_plan_builder.with_predicate(predicate);
-    }
-};
-# */
-```
-
-New code should use `FileScanConfig` to build the appropriate `DataSourceExec`:
-
-```rust
-# /* comment to avoid running
-let mut file_source = ParquetSource::new(parquet_options)
-    .with_schema_adapter_factory(Arc::new(DeltaSchemaAdapterFactory {}));
-
-// Add filter
-if let Some(predicate) = logical_filter {
-    if config.enable_parquet_pushdown {
-        file_source = file_source.with_predicate(predicate);
-    }
-};
-
-let file_scan_config = FileScanConfig::new(
-    self.log_store.object_store_url(),
-    file_schema,
-    Arc::new(file_source),
-)
-.with_statistics(stats)
-.with_projection(self.projection.cloned())
-.with_limit(self.limit)
-.with_table_partition_cols(table_partition_cols);
-
-// Build the actual scan like this
-parquet_scan: file_scan_config.build(),
-# */
-```
-
-### `datafusion-cli` no longer automatically unescapes strings
-
-`datafusion-cli` previously would incorrectly unescape string literals (see [ticket] for more details).
-
-To escape `'` in SQL literals, use `''`:
-
-```sql
-> select 'it''s escaped';
-+----------------------+
-| Utf8("it's escaped") |
-+----------------------+
-| it's escaped         |
-+----------------------+
-1 row(s) fetched.
-```
-
-To include special characters (such as newlines via `\n`) you can use an `E` literal string. For example
-
-```sql
-> select 'foo\nbar';
-+------------------+
-| Utf8("foo\nbar") |
-+------------------+
-| foo\nbar         |
-+------------------+
-1 row(s) fetched.
-Elapsed 0.005 seconds.
-```
-
-### Changes to array scalar function signatures
-
-DataFusion 46 has changed the way scalar array function signatures are
-declared. Previously, functions needed to select from a list of predefined
-signatures within the `ArrayFunctionSignature` enum. Now the signatures
-can be defined via a `Vec` of pseudo-types, which each correspond to a
-single argument. Those pseudo-types are the variants of the
-`ArrayFunctionArgument` enum and are as follows:
-
-- `Array`: An argument of type List/LargeList/FixedSizeList. All Array
-  arguments must be coercible to the same type.
-- `Element`: An argument that is coercible to the inner type of the `Array`
-  arguments.
-- `Index`: An `Int64` argument.
-
-Each of the old variants can be converted to the new format as follows:
-
-`TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElement)`:
-
-```rust
-# use datafusion::common::utils::ListCoercion;
-# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
-
-TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
-    arguments: vec![ArrayFunctionArgument::Array, ArrayFunctionArgument::Element],
-    array_coercion: Some(ListCoercion::FixedSizedListToList),
-});
-```
-
-`TypeSignature::ArraySignature(ArrayFunctionSignature::ElementAndArray)`:
-
-```rust
-# use datafusion::common::utils::ListCoercion;
-# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
-
-TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
-    arguments: vec![ArrayFunctionArgument::Element, ArrayFunctionArgument::Array],
-    array_coercion: Some(ListCoercion::FixedSizedListToList),
-});
-```
-
-`TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndIndex)`:
-
-```rust
-# use datafusion::common::utils::ListCoercion;
-# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
-
-TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
-    arguments: vec![ArrayFunctionArgument::Array, ArrayFunctionArgument::Index],
-    array_coercion: None,
-});
-```
-
-`TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElementAndOptionalIndex)`:
-
-```rust
-# use datafusion::common::utils::ListCoercion;
-# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
-
-TypeSignature::OneOf(vec![
-    TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
-        arguments: vec![ArrayFunctionArgument::Array, ArrayFunctionArgument::Element],
-        array_coercion: None,
-    }),
-    TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
-        arguments: vec![
-            ArrayFunctionArgument::Array,
-            ArrayFunctionArgument::Element,
-            ArrayFunctionArgument::Index,
-        ],
-        array_coercion: None,
-    }),
-]);
-```
-
-`TypeSignature::ArraySignature(ArrayFunctionSignature::Array)`:
-
-```rust
-# use datafusion::common::utils::ListCoercion;
-# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
-
-TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
-    arguments: vec![ArrayFunctionArgument::Array],
-    array_coercion: None,
-});
-```
-
-Alternatively, you can switch to using one of the following functions which
-take care of constructing the `TypeSignature` for you:
-
-- `Signature::array_and_element`
-- `Signature::array_and_element_and_optional_index`
-- `Signature::array_and_index`
-- `Signature::array`
-
-[ticket]: https://github.com/apache/datafusion/issues/13286
diff --git a/_sources/library-user-guide/upgrading/46.0.0.md.txt b/_sources/library-user-guide/upgrading/46.0.0.md.txt
new file mode 100644
index 0000000000..e38d18c3d6
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/46.0.0.md.txt
@@ -0,0 +1,310 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 46.0.0
+
+### Use `invoke_with_args` instead of `invoke()` and `invoke_batch()`
+
+DataFusion is moving to a consistent API for invoking ScalarUDFs,
+[`ScalarUDFImpl::invoke_with_args()`], and deprecating
+[`ScalarUDFImpl::invoke()`], [`ScalarUDFImpl::invoke_batch()`], and [`ScalarUDFImpl::invoke_no_args()`]
+
+If you see errors such as the following it means the older APIs are being used:
+
+```text
+This feature is not implemented: Function concat does not implement invoke but called
+```
+
+To fix this error, use [`ScalarUDFImpl::invoke_with_args()`] instead, as shown
+below. See [PR 14876] for an example.
+
+Given existing code like this:
+
+```rust
+# /* comment to avoid running
+impl ScalarUDFImpl for SparkConcat {
+...
+    fn invoke_batch(&self, args: &[ColumnarValue], number_rows: usize) -> Result<ColumnarValue> {
+        if args
+            .iter()
+            .any(|arg| matches!(arg.data_type(), DataType::List(_)))
+        {
+            ArrayConcat::new().invoke_batch(args, number_rows)
+        } else {
+            ConcatFunc::new().invoke_batch(args, number_rows)
+        }
+    }
+}
+# */
+```
+
+To
+
+```rust
+# /* comment to avoid running
+impl ScalarUDFImpl for SparkConcat {
+    ...
+    fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> {
+        if args
+            .args
+            .iter()
+            .any(|arg| matches!(arg.data_type(), DataType::List(_)))
+        {
+            ArrayConcat::new().invoke_with_args(args)
+        } else {
+            ConcatFunc::new().invoke_with_args(args)
+        }
+    }
+}
+ # */
+```
+
+[`scalarudfimpl::invoke()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke
+[`scalarudfimpl::invoke_batch()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_batch
+[`scalarudfimpl::invoke_no_args()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_no_args
+[`scalarudfimpl::invoke_with_args()`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_with_args
+[pr 14876]: https://github.com/apache/datafusion/pull/14876
+
+### `ParquetExec`, `AvroExec`, `CsvExec`, `JsonExec` deprecated
+
+DataFusion 46 has a major change to how the built in DataSources are organized.
+Instead of individual `ExecutionPlan`s for the different file formats they now
+all use `DataSourceExec` and the format specific information is embodied in new
+traits `DataSource` and `FileSource`.
+
+Here is more information about
+
+- [Design Ticket]
+- Change PR [PR #14224]
+- Example of an Upgrade [PR in delta-rs]
+
+[design ticket]: https://github.com/apache/datafusion/issues/13838
+[pr #14224]: https://github.com/apache/datafusion/pull/14224
+[pr in delta-rs]: https://github.com/delta-io/delta-rs/pull/3261
+
+### Cookbook: Changes to `ParquetExecBuilder`
+
+Code that looks for `ParquetExec` like this will no longer work:
+
+```rust
+# /* comment to avoid running
+    if let Some(parquet_exec) = plan.as_any().downcast_ref::<ParquetExec>() {
+        // Do something with ParquetExec here
+    }
+# */
+```
+
+Instead, with `DataSourceExec`, the same information is now on `FileScanConfig` and
+`ParquetSource`. The equivalent code is
+
+```rust
+# /* comment to avoid running
+if let Some(datasource_exec) = plan.as_any().downcast_ref::<DataSourceExec>() {
+  if let Some(scan_config) = datasource_exec.data_source().as_any().downcast_ref::<FileScanConfig>() {
+    // FileGroups, and other information is on the FileScanConfig
+    // parquet
+    if let Some(parquet_source) = scan_config.file_source.as_any().downcast_ref::<ParquetSource>()
+    {
+      // Information on PruningPredicates and parquet options are here
+    }
+}
+# */
+```
+
+### Cookbook: Changes to `ParquetExecBuilder`
+
+Likewise code that builds `ParquetExec` using the `ParquetExecBuilder` such as
+the following must be changed:
+
+```rust
+# /* comment to avoid running
+let mut exec_plan_builder = ParquetExecBuilder::new(
+    FileScanConfig::new(self.log_store.object_store_url(), file_schema)
+        .with_projection(self.projection.cloned())
+        .with_limit(self.limit)
+        .with_table_partition_cols(table_partition_cols),
+)
+.with_schema_adapter_factory(Arc::new(DeltaSchemaAdapterFactory {}))
+.with_table_parquet_options(parquet_options);
+
+// Add filter
+if let Some(predicate) = logical_filter {
+    if config.enable_parquet_pushdown {
+        exec_plan_builder = exec_plan_builder.with_predicate(predicate);
+    }
+};
+# */
+```
+
+New code should use `FileScanConfig` to build the appropriate `DataSourceExec`:
+
+```rust
+# /* comment to avoid running
+let mut file_source = ParquetSource::new(parquet_options)
+    .with_schema_adapter_factory(Arc::new(DeltaSchemaAdapterFactory {}));
+
+// Add filter
+if let Some(predicate) = logical_filter {
+    if config.enable_parquet_pushdown {
+        file_source = file_source.with_predicate(predicate);
+    }
+};
+
+let file_scan_config = FileScanConfig::new(
+    self.log_store.object_store_url(),
+    file_schema,
+    Arc::new(file_source),
+)
+.with_statistics(stats)
+.with_projection(self.projection.cloned())
+.with_limit(self.limit)
+.with_table_partition_cols(table_partition_cols);
+
+// Build the actual scan like this
+parquet_scan: file_scan_config.build(),
+# */
+```
+
+### `datafusion-cli` no longer automatically unescapes strings
+
+`datafusion-cli` previously would incorrectly unescape string literals (see [ticket] for more details).
+
+To escape `'` in SQL literals, use `''`:
+
+```sql
+> select 'it''s escaped';
++----------------------+
+| Utf8("it's escaped") |
++----------------------+
+| it's escaped         |
++----------------------+
+1 row(s) fetched.
+```
+
+To include special characters (such as newlines via `\n`) you can use an `E` literal string. For example
+
+```sql
+> select 'foo\nbar';
++------------------+
+| Utf8("foo\nbar") |
++------------------+
+| foo\nbar         |
++------------------+
+1 row(s) fetched.
+Elapsed 0.005 seconds.
+```
+
+### Changes to array scalar function signatures
+
+DataFusion 46 has changed the way scalar array function signatures are
+declared. Previously, functions needed to select from a list of predefined
+signatures within the `ArrayFunctionSignature` enum. Now the signatures
+can be defined via a `Vec` of pseudo-types, which each correspond to a
+single argument. Those pseudo-types are the variants of the
+`ArrayFunctionArgument` enum and are as follows:
+
+- `Array`: An argument of type List/LargeList/FixedSizeList. All Array
+  arguments must be coercible to the same type.
+- `Element`: An argument that is coercible to the inner type of the `Array`
+  arguments.
+- `Index`: An `Int64` argument.
+
+Each of the old variants can be converted to the new format as follows:
+
+`TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElement)`:
+
+```rust
+# use datafusion::common::utils::ListCoercion;
+# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
+
+TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
+    arguments: vec![ArrayFunctionArgument::Array, ArrayFunctionArgument::Element],
+    array_coercion: Some(ListCoercion::FixedSizedListToList),
+});
+```
+
+`TypeSignature::ArraySignature(ArrayFunctionSignature::ElementAndArray)`:
+
+```rust
+# use datafusion::common::utils::ListCoercion;
+# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
+
+TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
+    arguments: vec![ArrayFunctionArgument::Element, ArrayFunctionArgument::Array],
+    array_coercion: Some(ListCoercion::FixedSizedListToList),
+});
+```
+
+`TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndIndex)`:
+
+```rust
+# use datafusion::common::utils::ListCoercion;
+# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
+
+TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
+    arguments: vec![ArrayFunctionArgument::Array, ArrayFunctionArgument::Index],
+    array_coercion: None,
+});
+```
+
+`TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElementAndOptionalIndex)`:
+
+```rust
+# use datafusion::common::utils::ListCoercion;
+# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
+
+TypeSignature::OneOf(vec![
+    TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
+        arguments: vec![ArrayFunctionArgument::Array, ArrayFunctionArgument::Element],
+        array_coercion: None,
+    }),
+    TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
+        arguments: vec![
+            ArrayFunctionArgument::Array,
+            ArrayFunctionArgument::Element,
+            ArrayFunctionArgument::Index,
+        ],
+        array_coercion: None,
+    }),
+]);
+```
+
+`TypeSignature::ArraySignature(ArrayFunctionSignature::Array)`:
+
+```rust
+# use datafusion::common::utils::ListCoercion;
+# use datafusion_expr_common::signature::{ArrayFunctionArgument, ArrayFunctionSignature, TypeSignature};
+
+TypeSignature::ArraySignature(ArrayFunctionSignature::Array {
+    arguments: vec![ArrayFunctionArgument::Array],
+    array_coercion: None,
+});
+```
+
+Alternatively, you can switch to using one of the following functions which
+take care of constructing the `TypeSignature` for you:
+
+- `Signature::array_and_element`
+- `Signature::array_and_element_and_optional_index`
+- `Signature::array_and_index`
+- `Signature::array`
+
+[ticket]: https://github.com/apache/datafusion/issues/13286
diff --git a/_sources/library-user-guide/upgrading/47.0.0.md.txt b/_sources/library-user-guide/upgrading/47.0.0.md.txt
new file mode 100644
index 0000000000..354b6740df
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/47.0.0.md.txt
@@ -0,0 +1,135 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 47.0.0
+
+This section calls out some of the major changes in the `47.0.0` release of DataFusion.
+
+Here are some example upgrade PRs that demonstrate changes required when upgrading from DataFusion 46.0.0:
+
+- [delta-rs Upgrade to `47.0.0`](https://github.com/delta-io/delta-rs/pull/3378)
+- [DataFusion Comet Upgrade to `47.0.0`](https://github.com/apache/datafusion-comet/pull/1563)
+- [Sail Upgrade to `47.0.0`](https://github.com/lakehq/sail/pull/434)
+
+### Upgrades to `arrow-rs` and `arrow-parquet` 55.0.0 and `object_store` 0.12.0
+
+Several APIs are changed in the underlying arrow and parquet libraries to use a
+`u64` instead of `usize` to better support WASM (See [#7371] and [#6961])
+
+Additionally `ObjectStore::list` and `ObjectStore::list_with_offset` have been changed to return `static` lifetimes (See [#6619])
+
+[#6619]: https://github.com/apache/arrow-rs/pull/6619
+[#7371]: https://github.com/apache/arrow-rs/pull/7371
+
+This requires converting from `usize` to `u64` occasionally as well as changes to `ObjectStore` implementations such as
+
+```rust
+# /* comment to avoid running
+impl Objectstore {
+    ...
+    // The range is now a u64 instead of usize
+    async fn get_range(&self, location: &Path, range: Range<u64>) -> ObjectStoreResult<Bytes> {
+        self.inner.get_range(location, range).await
+    }
+    ...
+    // the lifetime is now 'static instead of `_ (meaning the captured closure can't contain references)
+    // (this also applies to list_with_offset)
+    fn list(&self, prefix: Option<&Path>) -> BoxStream<'static, ObjectStoreResult<ObjectMeta>> {
+        self.inner.list(prefix)
+    }
+}
+# */
+```
+
+The `ParquetObjectReader` has been updated to no longer require the object size
+(it can be fetched using a single suffix request). See [#7334] for details
+
+[#7334]: https://github.com/apache/arrow-rs/pull/7334
+
+Pattern in DataFusion `46.0.0`:
+
+```rust
+# /* comment to avoid running
+let meta: ObjectMeta = ...;
+let reader = ParquetObjectReader::new(store, meta);
+# */
+```
+
+Pattern in DataFusion `47.0.0`:
+
+```rust
+# /* comment to avoid running
+let meta: ObjectMeta = ...;
+let reader = ParquetObjectReader::new(store, location)
+  .with_file_size(meta.size);
+# */
+```
+
+### `DisplayFormatType::TreeRender`
+
+DataFusion now supports [`tree` style explain plans]. Implementations of
+`Executionplan` must also provide a description in the
+`DisplayFormatType::TreeRender` format. This can be the same as the existing
+`DisplayFormatType::Default`.
+
+[`tree` style explain plans]: https://datafusion.apache.org/user-guide/sql/explain.html#tree-format-default
+
+### Removed Deprecated APIs
+
+Several APIs have been removed in this release. These were either deprecated
+previously or were hard to use correctly such as the multiple different
+`ScalarUDFImpl::invoke*` APIs. See [#15130], [#15123], and [#15027] for more
+details.
+
+[#15130]: https://github.com/apache/datafusion/pull/15130
+[#15123]: https://github.com/apache/datafusion/pull/15123
+[#15027]: https://github.com/apache/datafusion/pull/15027
+
+### `FileScanConfig` --> `FileScanConfigBuilder`
+
+Previously, `FileScanConfig::build()` directly created ExecutionPlans. In
+DataFusion 47.0.0 this has been changed to use `FileScanConfigBuilder`. See
+[#15352] for details.
+
+[#15352]: https://github.com/apache/datafusion/pull/15352
+
+Pattern in DataFusion `46.0.0`:
+
+```rust
+# /* comment to avoid running
+let plan = FileScanConfig::new(url, schema, Arc::new(file_source))
+  .with_statistics(stats)
+  ...
+  .build()
+# */
+```
+
+Pattern in DataFusion `47.0.0`:
+
+```rust
+# /* comment to avoid running
+let config = FileScanConfigBuilder::new(url, Arc::new(file_source))
+  .with_statistics(stats)
+  ...
+  .build();
+let scan = DataSourceExec::from_data_source(config);
+# */
+```
diff --git a/_sources/library-user-guide/upgrading/48.0.0.md.txt b/_sources/library-user-guide/upgrading/48.0.0.md.txt
new file mode 100644
index 0000000000..7872a6f54f
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/48.0.0.md.txt
@@ -0,0 +1,244 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 48.0.0
+
+### `Expr::Literal` has optional metadata
+
+The [`Expr::Literal`] variant now includes optional metadata, which allows for
+carrying through Arrow field metadata to support extension types and other uses.
+
+This means code such as
+
+```rust
+# /* comment to avoid running
+match expr {
+...
+  Expr::Literal(scalar) => ...
+...
+}
+#  */
+```
+
+Should be updated to:
+
+```rust
+# /* comment to avoid running
+match expr {
+...
+  Expr::Literal(scalar, _metadata) => ...
+...
+}
+#  */
+```
+
+Likewise constructing `Expr::Literal` requires metadata as well. The [`lit`] function
+has not changed and returns an `Expr::Literal` with no metadata.
+
+[`expr::literal`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/enum.Expr.html#variant.Literal
+[`lit`]: https://docs.rs/datafusion/latest/datafusion/logical_expr/fn.lit.html
+
+### `Expr::WindowFunction` is now `Box`ed
+
+`Expr::WindowFunction` is now a `Box<WindowFunction>` instead of a `WindowFunction` directly.
+This change was made to reduce the size of `Expr` and improve performance when
+planning queries (see [details on #16207]).
+
+This is a breaking change, so you will need to update your code if you match
+on `Expr::WindowFunction` directly. For example, if you have code like this:
+
+```rust
+# /* comment to avoid running
+match expr {
+  Expr::WindowFunction(WindowFunction {
+    params:
+      WindowFunctionParams {
+       partition_by,
+       order_by,
+      ..
+    }
+  }) => {
+    // Use partition_by and order_by as needed
+  }
+  _ => {
+    // other expr
+  }
+}
+# */
+```
+
+You will need to change it to:
+
+```rust
+# /* comment to avoid running
+match expr {
+  Expr::WindowFunction(window_fun) => {
+    let WindowFunction {
+      fun,
+      params: WindowFunctionParams {
+        args,
+        partition_by,
+        ..
+        },
+    } = window_fun.as_ref();
+    // Use partition_by and order_by as needed
+  }
+  _ => {
+    // other expr
+  }
+}
+#  */
+```
+
+[details on #16207]: https://github.com/apache/datafusion/pull/16207#issuecomment-2922659103
+
+### The `VARCHAR` SQL type is now represented as `Utf8View` in Arrow
+
+The mapping of the SQL `VARCHAR` type has been changed from `Utf8` to `Utf8View`
+which improves performance for many string operations. You can read more about
+`Utf8View` in the [DataFusion blog post on German-style strings]
+
+[datafusion blog post on german-style strings]: https://datafusion.apache.org/blog/2024/09/13/string-view-german-style-strings-part-1/
+
+This means that when you create a table with a `VARCHAR` column, it will now use
+`Utf8View` as the underlying data type. For example:
+
+```sql
+> CREATE TABLE my_table (my_column VARCHAR);
+0 row(s) fetched.
+Elapsed 0.001 seconds.
+
+> DESCRIBE my_table;
++-------------+-----------+-------------+
+| column_name | data_type | is_nullable |
++-------------+-----------+-------------+
+| my_column   | Utf8View  | YES         |
++-------------+-----------+-------------+
+1 row(s) fetched.
+Elapsed 0.000 seconds.
+```
+
+You can restore the old behavior of using `Utf8` by changing the
+`datafusion.sql_parser.map_varchar_to_utf8view` configuration setting. For
+example
+
+```sql
+> set datafusion.sql_parser.map_varchar_to_utf8view = false;
+0 row(s) fetched.
+Elapsed 0.001 seconds.
+
+> CREATE TABLE my_table (my_column VARCHAR);
+0 row(s) fetched.
+Elapsed 0.014 seconds.
+
+> DESCRIBE my_table;
++-------------+-----------+-------------+
+| column_name | data_type | is_nullable |
++-------------+-----------+-------------+
+| my_column   | Utf8      | YES         |
++-------------+-----------+-------------+
+1 row(s) fetched.
+Elapsed 0.004 seconds.
+```
+
+### `ListingOptions` default for `collect_stat` changed from `true` to `false`
+
+This makes it agree with the default for `SessionConfig`.
+Most users won't be impacted by this change but if you were using `ListingOptions` directly
+and relied on the default value of `collect_stat` being `true`, you will need to
+explicitly set it to `true` in your code.
+
+```rust
+# /* comment to avoid running
+ListingOptions::new(Arc::new(ParquetFormat::default()))
+    .with_collect_stat(true)
+    // other options
+# */
+```
+
+### Processing `FieldRef` instead of `DataType` for user defined functions
+
+In order to support metadata handling and extension types, user defined functions are
+now switching to traits which use `FieldRef` rather than a `DataType` and nullability.
+This gives a single interface to both of these parameters and additionally allows
+access to metadata fields, which can be used for extension types.
+
+To upgrade structs which implement `ScalarUDFImpl`, if you have implemented
+`return_type_from_args` you need instead to implement `return_field_from_args`.
+If your functions do not need to handle metadata, this should be straightforward
+repackaging of the output data into a `FieldRef`. The name you specify on the
+field is not important. It will be overwritten during planning. `ReturnInfo`
+has been removed, so you will need to remove all references to it.
+
+`ScalarFunctionArgs` now contains a field called `arg_fields`. You can use this
+to access the metadata associated with the columnar values during invocation.
+
+To upgrade user defined aggregate functions, there is now a function
+`return_field` that will allow you to specify both metadata and nullability of
+your function. You are not required to implement this if you do not need to
+handle metadata.
+
+The largest change to aggregate functions happens in the accumulator arguments.
+Both the `AccumulatorArgs` and `StateFieldsArgs` now contain `FieldRef` rather
+than `DataType`.
+
+To upgrade window functions, `ExpressionArgs` now contains input fields instead
+of input data types. When setting these fields, the name of the field is
+not important since this gets overwritten during the planning stage. All you
+should need to do is wrap your existing data types in fields with nullability
+set depending on your use case.
+
+### Physical Expression return `Field`
+
+To support the changes to user defined functions processing metadata, the
+`PhysicalExpr` trait, which now must specify a return `Field` based on the input
+schema. To upgrade structs which implement `PhysicalExpr` you need to implement
+the `return_field` function. There are numerous examples in the `physical-expr`
+crate.
+
+### `FileFormat::supports_filters_pushdown` replaced with `FileSource::try_pushdown_filters`
+
+To support more general filter pushdown, the `FileFormat::supports_filters_pushdown` was replaced with
+`FileSource::try_pushdown_filters`.
+If you implemented a custom `FileFormat` that uses a custom `FileSource` you will need to implement
+`FileSource::try_pushdown_filters`.
+See `ParquetSource::try_pushdown_filters` for an example of how to implement this.
+
+`FileFormat::supports_filters_pushdown` has been removed.
+
+### `ParquetExec`, `AvroExec`, `CsvExec`, `JsonExec` Removed
+
+`ParquetExec`, `AvroExec`, `CsvExec`, and `JsonExec` were deprecated in
+DataFusion 46 and are removed in DataFusion 48. This is sooner than the normal
+process described in the [API Deprecation Guidelines] because all the tests
+cover the new `DataSourceExec` rather than the older structures. As we evolve
+`DataSource`, the old structures began to show signs of "bit rotting" (not
+working but no one knows due to lack of test coverage).
+
+[api deprecation guidelines]: https://datafusion.apache.org/contributor-guide/api-health.html#deprecation-guidelines
+
+### `PartitionedFile` added as an argument to the `FileOpener` trait
+
+This is necessary to properly fix filter pushdown for filters that combine partition
+columns and file columns (e.g. `day = username['dob']`).
+
+If you implemented a custom `FileOpener` you will need to add the `PartitionedFile` argument
+but are not required to use it in any way.
diff --git a/_sources/library-user-guide/upgrading/48.0.1.md.txt b/_sources/library-user-guide/upgrading/48.0.1.md.txt
new file mode 100644
index 0000000000..5dfb9e1e3d
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/48.0.1.md.txt
@@ -0,0 +1,39 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 48.0.1
+
+### `datafusion.execution.collect_statistics` now defaults to `true`
+
+The default value of the `datafusion.execution.collect_statistics` configuration
+setting is now true. This change impacts users that use that value directly and relied
+on its default value being `false`.
+
+This change also restores the default behavior of `ListingTable` to its previous. If you use it directly
+you can maintain the current behavior by overriding the default value in your code.
+
+```rust
+# /* comment to avoid running
+ListingOptions::new(Arc::new(ParquetFormat::default()))
+    .with_collect_stat(false)
+    // other options
+# */
+```
diff --git a/_sources/library-user-guide/upgrading/49.0.0.md.txt b/_sources/library-user-guide/upgrading/49.0.0.md.txt
new file mode 100644
index 0000000000..92dee81355
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/49.0.0.md.txt
@@ -0,0 +1,222 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 49.0.0
+
+### `MSRV` updated to 1.85.1
+
+The Minimum Supported Rust Version (MSRV) has been updated to [`1.85.1`]. See
+[#16728] for details.
+
+[`1.85.1`]: https://releases.rs/docs/1.85.1/
+[#16728]: https://github.com/apache/datafusion/pull/16728
+
+### `DataFusionError` variants are now `Box`ed
+
+To reduce the size of `DataFusionError`, several variants that were previously stored inline are now `Box`ed. This reduces the size of `Result<T, DataFusionError>` and thus stack usage and async state machine size. Please see [#16652] for more details.
+
+The following variants of `DataFusionError` are now boxed:
+
+- `ArrowError`
+- `SQL`
+- `SchemaError`
+
+This is a breaking change. Code that constructs or matches on these variants will need to be updated.
+
+For example, to create a `SchemaError`, instead of:
+
+```rust
+# /* comment to avoid running
+use datafusion_common::{DataFusionError, SchemaError};
+DataFusionError::SchemaError(
+  SchemaError::DuplicateUnqualifiedField { name: "foo".to_string() },
+  Box::new(None)
+)
+# */
+```
+
+You now need to `Box` the inner error:
+
+```rust
+# /* comment to avoid running
+use datafusion_common::{DataFusionError, SchemaError};
+DataFusionError::SchemaError(
+  Box::new(SchemaError::DuplicateUnqualifiedField { name: "foo".to_string() }),
+  Box::new(None)
+)
+# */
+```
+
+[#16652]: https://github.com/apache/datafusion/issues/16652
+
+### Metadata on Arrow Types is now represented by `FieldMetadata`
+
+Metadata from the Arrow `Field` is now stored using the `FieldMetadata`
+structure. In prior versions it was stored as both a `HashMap<String, String>`
+and a `BTreeMap<String, String>`. `FieldMetadata` is a easier to work with and
+is more efficient.
+
+To create `FieldMetadata` from a `Field`:
+
+```rust
+# /* comment to avoid running
+ let metadata = FieldMetadata::from(&field);
+# */
+```
+
+To add metadata to a `Field`, use the `add_to_field` method:
+
+```rust
+# /* comment to avoid running
+let updated_field = metadata.add_to_field(field);
+# */
+```
+
+See [#16317] for details.
+
+[#16317]: https://github.com/apache/datafusion/pull/16317
+
+### New `datafusion.execution.spill_compression` configuration option
+
+DataFusion 49.0.0 adds support for compressing spill files when data is written to disk during spilling query execution. A new configuration option `datafusion.execution.spill_compression` controls the compression codec used.
+
+**Configuration:**
+
+- **Key**: `datafusion.execution.spill_compression`
+- **Default**: `uncompressed`
+- **Valid values**: `uncompressed`, `lz4_frame`, `zstd`
+
+**Usage:**
+
+```rust
+# /* comment to avoid running
+use datafusion::prelude::*;
+use datafusion_common::config::SpillCompression;
+
+let config = SessionConfig::default()
+    .with_spill_compression(SpillCompression::Zstd);
+let ctx = SessionContext::new_with_config(config);
+# */
+```
+
+Or via SQL:
+
+```sql
+SET datafusion.execution.spill_compression = 'zstd';
+```
+
+For more details about this configuration option, including performance trade-offs between different compression codecs, see the [Configuration Settings](../../user-guide/configs) documentation.
+
+### Deprecated `map_varchar_to_utf8view` configuration option
+
+See [issue #16290](https://github.com/apache/datafusion/pull/16290) for more information
+The old configuration
+
+```text
+datafusion.sql_parser.map_varchar_to_utf8view
+```
+
+is now **deprecated** in favor of the unified option below.\
+If you previously used this to control only `VARCHAR`→`Utf8View` mapping, please migrate to `map_string_types_to_utf8view`.
+
+---
+
+### New `map_string_types_to_utf8view` configuration option
+
+To unify **all** SQL string types (`CHAR`, `VARCHAR`, `TEXT`, `STRING`) to Arrow’s zero‑copy `Utf8View`, DataFusion 49.0.0 introduces:
+
+- **Key**: `datafusion.sql_parser.map_string_types_to_utf8view`
+- **Default**: `true`
+
+**Description:**
+
+- When **true** (default), **all** SQL string types are mapped to `Utf8View`, avoiding full‑copy UTF‑8 allocations and improving performance.
+- When **false**, DataFusion falls back to the legacy `Utf8` mapping for **all** string types.
+
+#### Examples
+
+```rust
+# /* comment to avoid running
+// Disable Utf8View mapping for all SQL string types
+let opts = datafusion::sql::planner::ParserOptions::new()
+    .with_map_string_types_to_utf8view(false);
+
+// Verify the setting is applied
+assert!(!opts.map_string_types_to_utf8view);
+# */
+```
+
+---
+
+```sql
+-- Disable Utf8View mapping globally
+SET datafusion.sql_parser.map_string_types_to_utf8view = false;
+
+-- Now VARCHAR, CHAR, TEXT, STRING all use Utf8 rather than Utf8View
+CREATE TABLE my_table (a VARCHAR, b TEXT, c STRING);
+DESCRIBE my_table;
+```
+
+### Deprecating `SchemaAdapterFactory` and `SchemaAdapter`
+
+We are moving away from converting data (using `SchemaAdapter`) to converting the expressions themselves (which is more efficient and flexible).
+
+See [issue #16800](https://github.com/apache/datafusion/issues/16800) for more information
+The first place this change has taken place is in predicate pushdown for Parquet.
+By default if you do not use a custom `SchemaAdapterFactory` we will use expression conversion instead.
+If you do set a custom `SchemaAdapterFactory` we will continue to use it but emit a warning about that code path being deprecated.
+
+To resolve this you need to implement a custom `PhysicalExprAdapterFactory` and use that instead of a `SchemaAdapterFactory`.
+See the [default values](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs) for an example of how to do this.
+Opting into the new APIs will set you up for future changes since we plan to expand use of `PhysicalExprAdapterFactory` to other areas of DataFusion.
+
+See [#16800] for details.
+
+[#16800]: https://github.com/apache/datafusion/issues/16800
+
+### `TableParquetOptions` Updated
+
+The `TableParquetOptions` struct has a new `crypto` field to specify encryption
+options for Parquet files. The `ParquetEncryptionOptions` implements `Default`
+so you can upgrade your existing code like this:
+
+```rust
+# /* comment to avoid running
+TableParquetOptions {
+  global,
+  column_specific_options,
+  key_value_metadata,
+}
+# */
+```
+
+To this:
+
+```rust
+# /* comment to avoid running
+TableParquetOptions {
+  global,
+  column_specific_options,
+  key_value_metadata,
+  crypto: Default::default(), // New crypto field
+}
+# */
+```
diff --git a/_sources/library-user-guide/upgrading/50.0.0.md.txt b/_sources/library-user-guide/upgrading/50.0.0.md.txt
new file mode 100644
index 0000000000..d8155dab58
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/50.0.0.md.txt
@@ -0,0 +1,330 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 50.0.0
+
+### ListingTable automatically detects Hive Partitioned tables
+
+DataFusion 50.0.0 automatically infers Hive partitions when using the `ListingTableFactory` and `CREATE EXTERNAL TABLE`. Previously,
+when creating a `ListingTable`, datasets that use Hive partitioning (e.g.
+`/table_root/column1=value1/column2=value2/data.parquet`) would not have the Hive columns reflected in
+the table's schema or data. The previous behavior can be
+restored by setting the `datafusion.execution.listing_table_factory_infer_partitions` configuration option to `false`.
+See [issue #17049] for more details.
+
+[issue #17049]: https://github.com/apache/datafusion/issues/17049
+
+### `MSRV` updated to 1.86.0
+
+The Minimum Supported Rust Version (MSRV) has been updated to [`1.86.0`].
+See [#17230] for details.
+
+[`1.86.0`]: https://releases.rs/docs/1.86.0/
+[#17230]: https://github.com/apache/datafusion/pull/17230
+
+### `ScalarUDFImpl`, `AggregateUDFImpl` and `WindowUDFImpl` traits now require `PartialEq`, `Eq`, and `Hash` traits
+
+To address error-proneness of `ScalarUDFImpl::equals`, `AggregateUDFImpl::equals`and
+`WindowUDFImpl::equals` methods and to make it easy to implement function equality correctly,
+the `equals` and `hash_value` methods have been removed from `ScalarUDFImpl`, `AggregateUDFImpl`
+and `WindowUDFImpl` traits. They are replaced the requirement to implement the `PartialEq`, `Eq`,
+and `Hash` traits on any type implementing `ScalarUDFImpl`, `AggregateUDFImpl` or `WindowUDFImpl`.
+Please see [issue #16677] for more details.
+
+Most of the scalar functions are stateless and have a `signature` field. These can be migrated
+using regular expressions
+
+- search for `\#\[derive\(Debug\)\](\n *(pub )?struct \w+ \{\n *signature\: Signature\,\n *\})`,
+- replace with `#[derive(Debug, PartialEq, Eq, Hash)]$1`,
+- review all the changes and make sure only function structs were changed.
+
+[issue #16677]: https://github.com/apache/datafusion/issues/16677
+
+### `AsyncScalarUDFImpl::invoke_async_with_args` returns `ColumnarValue`
+
+In order to enable single value optimizations and be consistent with other
+user defined function APIs, the `AsyncScalarUDFImpl::invoke_async_with_args` method now
+returns a `ColumnarValue` instead of a `ArrayRef`.
+
+To upgrade, change the return type of your implementation
+
+```rust
+# /* comment to avoid running
+impl AsyncScalarUDFImpl for AskLLM {
+    async fn invoke_async_with_args(
+        &self,
+        args: ScalarFunctionArgs,
+        _option: &ConfigOptions,
+    ) -> Result<ColumnarValue> {
+        ..
+      return array_ref; // old code
+    }
+}
+# */
+```
+
+To return a `ColumnarValue`
+
+```rust
+# /* comment to avoid running
+impl AsyncScalarUDFImpl for AskLLM {
+    async fn invoke_async_with_args(
+        &self,
+        args: ScalarFunctionArgs,
+        _option: &ConfigOptions,
+    ) -> Result<ColumnarValue> {
+        ..
+      return ColumnarValue::from(array_ref); // new code
+    }
+}
+# */
+```
+
+See [#16896](https://github.com/apache/datafusion/issues/16896) for more details.
+
+### `ProjectionExpr` changed from type alias to struct
+
+`ProjectionExpr` has been changed from a type alias to a struct with named fields to improve code clarity and maintainability.
+
+**Before:**
+
+```rust,ignore
+pub type ProjectionExpr = (Arc<dyn PhysicalExpr>, String);
+```
+
+**After:**
+
+```rust,ignore
+#[derive(Debug, Clone)]
+pub struct ProjectionExpr {
+    pub expr: Arc<dyn PhysicalExpr>,
+    pub alias: String,
+}
+```
+
+To upgrade your code:
+
+- Replace tuple construction `(expr, alias)` with `ProjectionExpr::new(expr, alias)` or `ProjectionExpr { expr, alias }`
+- Replace tuple field access `.0` and `.1` with `.expr` and `.alias`
+- Update pattern matching from `(expr, alias)` to `ProjectionExpr { expr, alias }`
+
+This mainly impacts use of `ProjectionExec`.
+
+This change was done in [#17398]
+
+[#17398]: https://github.com/apache/datafusion/pull/17398
+
+### `SessionState`, `SessionConfig`, and `OptimizerConfig` returns `&Arc<ConfigOptions>` instead of `&ConfigOptions`
+
+To provide broader access to `ConfigOptions` and reduce required clones, some
+APIs have been changed to return a `&Arc<ConfigOptions>` instead of a
+`&ConfigOptions`. This allows sharing the same `ConfigOptions` across multiple
+threads without needing to clone the entire `ConfigOptions` structure unless it
+is modified.
+
+Most users will not be impacted by this change since the Rust compiler typically
+automatically dereference the `Arc` when needed. However, in some cases you may
+have to change your code to explicitly call `as_ref()` for example, from
+
+```rust
+# /* comment to avoid running
+let optimizer_config: &ConfigOptions = state.options();
+#  */
+```
+
+To
+
+```rust
+# /* comment to avoid running
+let optimizer_config: &ConfigOptions = state.options().as_ref();
+#  */
+```
+
+See PR [#16970](https://github.com/apache/datafusion/pull/16970)
+
+### API Change to `AsyncScalarUDFImpl::invoke_async_with_args`
+
+The `invoke_async_with_args` method of the `AsyncScalarUDFImpl` trait has been
+updated to remove the `_option: &ConfigOptions` parameter to simplify the API
+now that the `ConfigOptions` can be accessed through the `ScalarFunctionArgs`
+parameter.
+
+You can change your code like this
+
+```rust
+# /* comment to avoid running
+impl AsyncScalarUDFImpl for AskLLM {
+    async fn invoke_async_with_args(
+        &self,
+        args: ScalarFunctionArgs,
+        _option: &ConfigOptions,
+    ) -> Result<ArrayRef> {
+        ..
+    }
+    ...
+}
+# */
+```
+
+To this:
+
+```rust
+# /* comment to avoid running
+
+impl AsyncScalarUDFImpl for AskLLM {
+    async fn invoke_async_with_args(
+        &self,
+        args: ScalarFunctionArgs,
+    ) -> Result<ArrayRef> {
+        let options = &args.config_options;
+        ..
+    }
+    ...
+}
+# */
+```
+
+### Schema Rewriter Module Moved to New Crate
+
+The `schema_rewriter` module and its associated symbols have been moved from `datafusion_physical_expr` to a new crate `datafusion_physical_expr_adapter`. This affects the following symbols:
+
+- `DefaultPhysicalExprAdapter`
+- `DefaultPhysicalExprAdapterFactory`
+- `PhysicalExprAdapter`
+- `PhysicalExprAdapterFactory`
+
+To upgrade, change your imports to:
+
+```rust
+use datafusion_physical_expr_adapter::{
+    DefaultPhysicalExprAdapter, DefaultPhysicalExprAdapterFactory,
+    PhysicalExprAdapter, PhysicalExprAdapterFactory
+};
+```
+
+### Upgrade to arrow `56.0.0` and parquet `56.0.0`
+
+This version of DataFusion upgrades the underlying Apache Arrow implementation
+to version `56.0.0`. See the [release notes](https://github.com/apache/arrow-rs/releases/tag/56.0.0)
+for more details.
+
+### Added `ExecutionPlan::reset_state`
+
+In order to fix a bug in DataFusion `49.0.0` where dynamic filters (currently only generated in the presence of a query such as `ORDER BY ... LIMIT ...`)
+produced incorrect results in recursive queries, a new method `reset_state` has been added to the `ExecutionPlan` trait.
+
+Any `ExecutionPlan` that needs to maintain internal state or references to other nodes in the execution plan tree should implement this method to reset that state.
+See [#17028] for more details and an example implementation for `SortExec`.
+
+[#17028]: https://github.com/apache/datafusion/pull/17028
+
+### Nested Loop Join input sort order cannot be preserved
+
+The Nested Loop Join operator has been rewritten from scratch to improve performance and memory efficiency. From the micro-benchmarks: this change introduces up to 5X speed-up and uses only 1% memory in extreme cases compared to the previous implementation.
+
+However, the new implementation cannot preserve input sort order like the old version could. This is a fundamental design trade-off that prioritizes performance and memory efficiency over sort order preservation.
+
+See [#16996] for details.
+
+[#16996]: https://github.com/apache/datafusion/pull/16996
+
+### Add `as_any()` method to `LazyBatchGenerator`
+
+To help with protobuf serialization, the `as_any()` method has been added to the `LazyBatchGenerator` trait. This means you will need to add `as_any()` to your implementation of `LazyBatchGenerator`:
+
+```rust
+# /* comment to avoid running
+
+impl LazyBatchGenerator for MyBatchGenerator {
+    fn as_any(&self) -> &dyn Any {
+        self
+    }
+
+    ...
+}
+
+# */
+```
+
+See [#17200](https://github.com/apache/datafusion/pull/17200) for details.
+
+### Refactored `DataSource::try_swapping_with_projection`
+
+We refactored `DataSource::try_swapping_with_projection` to simplify the method and minimize leakage across the ExecutionPlan <-> DataSource abstraction layer.
+Reimplementation for any custom `DataSource` should be relatively straightforward, see [#17395] for more details.
+
+[#17395]: https://github.com/apache/datafusion/pull/17395/
+
+### `FileOpenFuture` now uses `DataFusionError` instead of `ArrowError`
+
+The `FileOpenFuture` type alias has been updated to use `DataFusionError` instead of `ArrowError` for its error type. This change affects the `FileOpener` trait and any implementations that work with file streaming operations.
+
+**Before:**
+
+```rust,ignore
+pub type FileOpenFuture = BoxFuture<'static, Result<BoxStream<'static, Result<RecordBatch, ArrowError>>>>;
+```
+
+**After:**
+
+```rust,ignore
+pub type FileOpenFuture = BoxFuture<'static, Result<BoxStream<'static, Result<RecordBatch>>>>;
+```
+
+If you have custom implementations of `FileOpener` or work directly with `FileOpenFuture`, you'll need to update your error handling to use `DataFusionError` instead of `ArrowError`. The `FileStreamState` enum's `Open` variant has also been updated accordingly. See [#17397] for more details.
+
+[#17397]: https://github.com/apache/datafusion/pull/17397
+
+### FFI user defined aggregate function signature change
+
+The Foreign Function Interface (FFI) signature for user defined aggregate functions
+has been updated to call `return_field` instead of `return_type` on the underlying
+aggregate function. This is to support metadata handling with these aggregate functions.
+This change should be transparent to most users. If you have written unit tests to call
+`return_type` directly, you may need to change them to calling `return_field` instead.
+
+This update is a breaking change to the FFI API. The current best practice when using the
+FFI crate is to ensure that all libraries that are interacting are using the same
+underlying Rust version. Issue [#17374] has been opened to discuss stabilization of
+this interface so that these libraries can be used across different DataFusion versions.
+
+See [#17407] for details.
+
+[#17407]: https://github.com/apache/datafusion/pull/17407
+[#17374]: https://github.com/apache/datafusion/issues/17374
+
+### Added `PhysicalExpr::is_volatile_node`
+
+We added a method to `PhysicalExpr` to mark a `PhysicalExpr` as volatile:
+
+```rust,ignore
+impl PhysicalExpr for MyRandomExpr {
+  fn is_volatile_node(&self) -> bool {
+    true
+  }
+}
+```
+
+We've shipped this with a default value of `false` to minimize breakage but we highly recommend that implementers of `PhysicalExpr` opt into a behavior, even if it is returning `false`.
+
+You can see more discussion and example implementations in [#17351].
+
+[#17351]: https://github.com/apache/datafusion/pull/17351
diff --git a/_sources/library-user-guide/upgrading/51.0.0.md.txt b/_sources/library-user-guide/upgrading/51.0.0.md.txt
new file mode 100644
index 0000000000..c3acfe15c4
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/51.0.0.md.txt
@@ -0,0 +1,272 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 51.0.0
+
+### `arrow` / `parquet` updated to 57.0.0
+
+### Upgrade to arrow `57.0.0` and parquet `57.0.0`
+
+This version of DataFusion upgrades the underlying Apache Arrow implementation
+to version `57.0.0`, including several dependent crates such as `prost`,
+`tonic`, `pyo3`, and `substrait`. . See the [release
+notes](https://github.com/apache/arrow-rs/releases/tag/57.0.0) for more details.
+
+### `MSRV` updated to 1.88.0
+
+The Minimum Supported Rust Version (MSRV) has been updated to [`1.88.0`].
+
+[`1.88.0`]: https://releases.rs/docs/1.88.0/
+
+### `FunctionRegistry` exposes two additional methods
+
+`FunctionRegistry` exposes two additional methods `udafs` and `udwfs` which expose set of registered user defined aggregation and window function names. To upgrade implement methods returning set of registered function names:
+
+```diff
+impl FunctionRegistry for FunctionRegistryImpl {
+      fn udfs(&self) -> HashSet<String> {
+         self.scalar_functions.keys().cloned().collect()
+     }
++    fn udafs(&self) -> HashSet<String> {
++        self.aggregate_functions.keys().cloned().collect()
++    }
++
++    fn udwfs(&self) -> HashSet<String> {
++        self.window_functions.keys().cloned().collect()
++    }
+}
+```
+
+### `datafusion-proto` use `TaskContext` rather than `SessionContext` in physical plan serde methods
+
+There have been changes in the public API methods of `datafusion-proto` which handle physical plan serde.
+
+Methods like `physical_plan_from_bytes`, `parse_physical_expr` and similar, expect `TaskContext` instead of `SessionContext`
+
+```diff
+- let plan2 = physical_plan_from_bytes(&bytes, &ctx)?;
++ let plan2 = physical_plan_from_bytes(&bytes, &ctx.task_ctx())?;
+```
+
+as `TaskContext` contains `RuntimeEnv` methods such as `try_into_physical_plan` will not have explicit `RuntimeEnv` parameter.
+
+```diff
+let result_exec_plan: Arc<dyn ExecutionPlan> = proto
+-   .try_into_physical_plan(&ctx, runtime.deref(), &composed_codec)
++.  .try_into_physical_plan(&ctx.task_ctx(), &composed_codec)
+```
+
+`PhysicalExtensionCodec::try_decode()` expects `TaskContext` instead of `FunctionRegistry`:
+
+```diff
+pub trait PhysicalExtensionCodec {
+    fn try_decode(
+        &self,
+        buf: &[u8],
+        inputs: &[Arc<dyn ExecutionPlan>],
+-        registry: &dyn FunctionRegistry,
++        ctx: &TaskContext,
+    ) -> Result<Arc<dyn ExecutionPlan>>;
+```
+
+See [issue #17601] for more details.
+
+[issue #17601]: https://github.com/apache/datafusion/issues/17601
+
+### `SessionState`'s `sql_to_statement` method takes `Dialect` rather than a `str`
+
+The `dialect` parameter of `sql_to_statement` method defined in `datafusion::execution::session_state::SessionState`
+has changed from `&str` to `&Dialect`.
+`Dialect` is an enum defined in the `datafusion-common`
+crate under the `config` module that provides type safety
+and better validation for SQL dialect selection
+
+### Reorganization of `ListingTable` into `datafusion-catalog-listing` crate
+
+There has been a long standing request to remove features such as `ListingTable`
+from the `datafusion` crate to support faster build times. The structs
+`ListingOptions`, `ListingTable`, and `ListingTableConfig` are now available
+within the `datafusion-catalog-listing` crate. These are re-exported in
+the `datafusion` crate, so this should be a minimal impact to existing users.
+
+See [issue #14462] and [issue #17713] for more details.
+
+[issue #14462]: https://github.com/apache/datafusion/issues/14462
+[issue #17713]: https://github.com/apache/datafusion/issues/17713
+
+### Reorganization of `ArrowSource` into `datafusion-datasource-arrow` crate
+
+To support [issue #17713] the `ArrowSource` code has been removed from
+the `datafusion` core crate into it's own crate, `datafusion-datasource-arrow`.
+This follows the pattern for the AVRO, CSV, JSON, and Parquet data sources.
+Users may need to update their paths to account for these changes.
+
+See [issue #17713] for more details.
+
+### `FileScanConfig::projection` renamed to `FileScanConfig::projection_exprs`
+
+The `projection` field in `FileScanConfig` has been renamed to `projection_exprs` and its type has changed from `Option<Vec<usize>>` to `Option<ProjectionExprs>`. This change enables more powerful projection pushdown capabilities by supporting arbitrary physical expressions rather than just column indices.
+
+**Impact on direct field access:**
+
+If you directly access the `projection` field:
+
+```rust,ignore
+let config: FileScanConfig = ...;
+let projection = config.projection;
+```
+
+You should update to:
+
+```rust,ignore
+let config: FileScanConfig = ...;
+let projection_exprs = config.projection_exprs;
+```
+
+**Impact on builders:**
+
+The `FileScanConfigBuilder::with_projection()` method has been deprecated in favor of `with_projection_indices()`:
+
+```diff
+let config = FileScanConfigBuilder::new(url, file_source)
+-   .with_projection(Some(vec![0, 2, 3]))
++   .with_projection_indices(Some(vec![0, 2, 3]))
+    .build();
+```
+
+Note: `with_projection()` still works but is deprecated and will be removed in a future release.
+
+**What is `ProjectionExprs`?**
+
+`ProjectionExprs` is a new type that represents a list of physical expressions for projection. While it can be constructed from column indices (which is what `with_projection_indices` does internally), it also supports arbitrary physical expressions, enabling advanced features like expression evaluation during scanning.
+
+You can access column indices from `ProjectionExprs` using its methods if needed:
+
+```rust,ignore
+let projection_exprs: ProjectionExprs = ...;
+// Get the column indices if the projection only contains simple column references
+let indices = projection_exprs.column_indices();
+```
+
+### `DESCRIBE query` support
+
+`DESCRIBE query` was previously an alias for `EXPLAIN query`, which outputs the
+_execution plan_ of the query. With this release, `DESCRIBE query` now outputs
+the computed _schema_ of the query, consistent with the behavior of `DESCRIBE table_name`.
+
+### `datafusion.execution.time_zone` default configuration changed
+
+The default value for `datafusion.execution.time_zone` previously was a string value of `+00:00` (GMT/Zulu time).
+This was changed to be an `Option<String>` with a default of `None`. If you want to change the timezone back
+to the previous value you can execute the sql:
+
+```sql
+SET
+TIMEZONE = '+00:00';
+```
+
+This change was made to better support using the default timezone in scalar UDF functions such as
+`now`, `current_date`, `current_time`, and `to_timestamp` among others.
+
+### Introduction of `TableSchema` and changes to `FileSource::with_schema()` method
+
+A new `TableSchema` struct has been introduced in the `datafusion-datasource` crate to better manage table schemas with partition columns. This struct helps distinguish between:
+
+- **File schema**: The schema of actual data files on disk
+- **Partition columns**: Columns derived from directory structure (e.g., Hive-style partitioning)
+- **Table schema**: The complete schema combining both file and partition columns
+
+As part of this change, the `FileSource::with_schema()` method signature has changed from accepting a `SchemaRef` to accepting a `TableSchema`.
+
+**Who is affected:**
+
+- Users who have implemented custom `FileSource` implementations will need to update their code
+- Users who only use built-in file sources (Parquet, CSV, JSON, AVRO, Arrow) are not affected
+
+**Migration guide for custom `FileSource` implementations:**
+
+```diff
+ use datafusion_datasource::file::FileSource;
+-use arrow::datatypes::SchemaRef;
++use datafusion_datasource::TableSchema;
+
+ impl FileSource for MyCustomSource {
+-    fn with_schema(&self, schema: SchemaRef) -> Arc<dyn FileSource> {
++    fn with_schema(&self, schema: TableSchema) -> Arc<dyn FileSource> {
+         Arc::new(Self {
+-            schema: Some(schema),
++            // Use schema.file_schema() to get the file schema without partition columns
++            schema: Some(Arc::clone(schema.file_schema())),
+             ..self.clone()
+         })
+     }
+ }
+```
+
+For implementations that need access to partition columns:
+
+```rust,ignore
+fn with_schema(&self, schema: TableSchema) -> Arc<dyn FileSource> {
+    Arc::new(Self {
+        file_schema: Arc::clone(schema.file_schema()),
+        partition_cols: schema.table_partition_cols().clone(),
+        table_schema: Arc::clone(schema.table_schema()),
+        ..self.clone()
+    })
+}
+```
+
+**Note**: Most `FileSource` implementations only need to store the file schema (without partition columns), as shown in the first example. The second pattern of storing all three schema components is typically only needed for advanced use cases where you need access to different schema representations for different operations (e.g., ParquetSource uses the file schema for building pruning predicates but needs the table schema for filter pushdown logic).
+
+**Using `TableSchema` directly:**
+
+If you're constructing a `FileScanConfig` or working with table schemas and partition columns, you can now use `TableSchema`:
+
+```rust
+use datafusion_datasource::TableSchema;
+use arrow::datatypes::{Schema, Field, DataType};
+use std::sync::Arc;
+
+// Create a TableSchema with partition columns
+let file_schema = Arc::new(Schema::new(vec![
+    Field::new("user_id", DataType::Int64, false),
+    Field::new("amount", DataType::Float64, false),
+]));
+
+let partition_cols = vec![
+    Arc::new(Field::new("date", DataType::Utf8, false)),
+    Arc::new(Field::new("region", DataType::Utf8, false)),
+];
+
+let table_schema = TableSchema::new(file_schema, partition_cols);
+
+// Access different schema representations
+let file_schema_ref = table_schema.file_schema();      // Schema without partition columns
+let full_schema = table_schema.table_schema();          // Complete schema with partition columns
+let partition_cols_ref = table_schema.table_partition_cols(); // Just the partition columns
+```
+
+### `AggregateUDFImpl::is_ordered_set_aggregate` has been renamed to `AggregateUDFImpl::supports_within_group_clause`
+
+This method has been renamed to better reflect the actual impact it has for aggregate UDF implementations.
+The accompanying `AggregateUDF::is_ordered_set_aggregate` has also been renamed to `AggregateUDF::supports_within_group_clause`.
+No functionality has been changed with regards to this method; it still refers only to permitting use of `WITHIN GROUP`
+SQL syntax for the aggregate function.
diff --git a/_sources/library-user-guide/upgrading/52.0.0.md.txt b/_sources/library-user-guide/upgrading/52.0.0.md.txt
new file mode 100644
index 0000000000..4c659b6118
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/52.0.0.md.txt
@@ -0,0 +1,669 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 52.0.0
+
+### Changes to DFSchema API
+
+To permit more efficient planning, several methods on `DFSchema` have been
+changed to return references to the underlying [`&FieldRef`] rather than
+[`&Field`]. This allows planners to more cheaply copy the references via
+`Arc::clone` rather than cloning the entire `Field` structure.
+
+You may need to change code to use `Arc::clone` instead of `.as_ref().clone()`
+directly on the `Field`. For example:
+
+```diff
+- let field = df_schema.field("my_column").as_ref().clone();
++ let field = Arc::clone(df_schema.field("my_column"));
+```
+
+### ListingTableProvider now caches `LIST` commands
+
+In prior versions, `ListingTableProvider` would issue `LIST` commands to
+the underlying object store each time it needed to list files for a query.
+To improve performance, `ListingTableProvider` now caches the results of
+`LIST` commands for the lifetime of the `ListingTableProvider` instance or
+until a cache entry expires.
+
+Note that by default the cache has no expiration time, so if files are added or removed
+from the underlying object store, the `ListingTableProvider` will not see
+those changes until the `ListingTableProvider` instance is dropped and recreated.
+
+You can configure the maximum cache size and cache entry expiration time via configuration options:
+
+- `datafusion.runtime.list_files_cache_limit` - Limits the size of the cache in bytes
+- `datafusion.runtime.list_files_cache_ttl` - Limits the TTL (time-to-live) of an entry in seconds
+
+Detailed configuration information can be found in the [DataFusion Runtime
+Configuration](https://datafusion.apache.org/user-guide/configs.html#runtime-configuration-settings) user's guide.
+
+Caching can be disabled by setting the limit to 0:
+
+```sql
+SET datafusion.runtime.list_files_cache_limit TO "0K";
+```
+
+Note that the internal API has changed to use a trait `ListFilesCache` instead of a type alias.
+
+### `newlines_in_values` moved from `FileScanConfig` to `CsvOptions`
+
+The CSV-specific `newlines_in_values` configuration option has been moved from `FileScanConfig` to `CsvOptions`, as it only applies to CSV file parsing.
+
+**Who is affected:**
+
+- Users who set `newlines_in_values` via `FileScanConfigBuilder::with_newlines_in_values()`
+
+**Migration guide:**
+
+Set `newlines_in_values` in `CsvOptions` instead of on `FileScanConfigBuilder`:
+
+**Before:**
+
+```rust,ignore
+let source = Arc::new(CsvSource::new(file_schema.clone()));
+let config = FileScanConfigBuilder::new(object_store_url, source)
+    .with_newlines_in_values(true)
+    .build();
+```
+
+**After:**
+
+```rust,ignore
+let options = CsvOptions {
+    newlines_in_values: Some(true),
+    ..Default::default()
+};
+let source = Arc::new(CsvSource::new(file_schema.clone())
+    .with_csv_options(options));
+let config = FileScanConfigBuilder::new(object_store_url, source)
+    .build();
+```
+
+### Removal of `pyarrow` feature
+
+The `pyarrow` feature flag has been removed. This feature has been migrated to
+the `datafusion-python` repository since version `44.0.0`.
+
+### Refactoring of `FileSource` constructors and `FileScanConfigBuilder` to accept schemas upfront
+
+The way schemas are passed to file sources and scan configurations has been significantly refactored. File sources now require the schema (including partition columns) to be provided at construction time, and `FileScanConfigBuilder` no longer takes a separate schema parameter.
+
+**Who is affected:**
+
+- Users who create `FileScanConfig` or file sources (`ParquetSource`, `CsvSource`, `JsonSource`, `AvroSource`) directly
+- Users who implement custom `FileFormat` implementations
+
+**Key changes:**
+
+1. **FileSource constructors now require TableSchema**: All built-in file sources now take the schema in their constructor:
+
+   ```diff
+   - let source = ParquetSource::default();
+   + let source = ParquetSource::new(table_schema);
+   ```
+
+2. **FileScanConfigBuilder no longer takes schema as a parameter**: The schema is now passed via the FileSource:
+
+   ```diff
+   - FileScanConfigBuilder::new(url, schema, source)
+   + FileScanConfigBuilder::new(url, source)
+   ```
+
+3. **Partition columns are now part of TableSchema**: The `with_table_partition_cols()` method has been removed from `FileScanConfigBuilder`. Partition columns are now passed as part of the `TableSchema` to the FileSource constructor:
+
+   ```diff
+   + let table_schema = TableSchema::new(
+   +     file_schema,
+   +     vec![Arc::new(Field::new("date", DataType::Utf8, false))],
+   + );
+   + let source = ParquetSource::new(table_schema);
+     let config = FileScanConfigBuilder::new(url, source)
+   -     .with_table_partition_cols(vec![Field::new("date", DataType::Utf8, false)])
+         .with_file(partitioned_file)
+         .build();
+   ```
+
+4. **FileFormat::file_source() now takes TableSchema parameter**: Custom `FileFormat` implementations must be updated:
+   ```diff
+   impl FileFormat for MyFileFormat {
+   -   fn file_source(&self) -> Arc<dyn FileSource> {
+   +   fn file_source(&self, table_schema: TableSchema) -> Arc<dyn FileSource> {
+   -       Arc::new(MyFileSource::default())
+   +       Arc::new(MyFileSource::new(table_schema))
+       }
+   }
+   ```
+
+**Migration examples:**
+
+For Parquet files:
+
+```diff
+- let source = Arc::new(ParquetSource::default());
+- let config = FileScanConfigBuilder::new(url, schema, source)
++ let table_schema = TableSchema::new(schema, vec![]);
++ let source = Arc::new(ParquetSource::new(table_schema));
++ let config = FileScanConfigBuilder::new(url, source)
+      .with_file(partitioned_file)
+      .build();
+```
+
+For CSV files with partition columns:
+
+```diff
+- let source = Arc::new(CsvSource::new(true, b',', b'"'));
+- let config = FileScanConfigBuilder::new(url, file_schema, source)
+-     .with_table_partition_cols(vec![Field::new("year", DataType::Int32, false)])
++ let options = CsvOptions {
++     has_header: Some(true),
++     delimiter: b',',
++     quote: b'"',
++     ..Default::default()
++ };
++ let table_schema = TableSchema::new(
++     file_schema,
++     vec![Arc::new(Field::new("year", DataType::Int32, false))],
++ );
++ let source = Arc::new(CsvSource::new(table_schema).with_csv_options(options));
++ let config = FileScanConfigBuilder::new(url, source)
+      .build();
+```
+
+### Adaptive filter representation in Parquet filter pushdown
+
+As of Arrow 57.1.0, DataFusion uses a new adaptive filter strategy when
+evaluating pushed down filters for Parquet files. This new strategy improves
+performance for certain types of queries where the results of filtering are
+more efficiently represented with a bitmask rather than a selection.
+See [arrow-rs #5523] for more details.
+
+This change only applies to the built-in Parquet data source with filter-pushdown enabled (
+which is [not yet the default behavior]).
+
+You can disable the new behavior by setting the
+`datafusion.execution.parquet.force_filter_selections` [configuration setting] to true.
+
+```sql
+> set datafusion.execution.parquet.force_filter_selections = true;
+```
+
+[arrow-rs #5523]: https://github.com/apache/arrow-rs/issues/5523
+[configuration setting]: https://datafusion.apache.org/user-guide/configs.html
+[not yet the default behavior]: https://github.com/apache/datafusion/issues/3463
+
+### Statistics handling moved from `FileSource` to `FileScanConfig`
+
+Statistics are now managed directly by `FileScanConfig` instead of being delegated to `FileSource` implementations. This simplifies the `FileSource` trait and provides more consistent statistics handling across all file formats.
+
+**Who is affected:**
+
+- Users who have implemented custom `FileSource` implementations
+
+**Breaking changes:**
+
+Two methods have been removed from the `FileSource` trait:
+
+- `with_statistics(&self, statistics: Statistics) -> Arc<dyn FileSource>`
+- `statistics(&self) -> Result<Statistics>`
+
+**Migration guide:**
+
+If you have a custom `FileSource` implementation, you need to:
+
+1. Remove the `with_statistics` method implementation
+2. Remove the `statistics` method implementation
+3. Remove any internal state that was storing statistics
+
+**Before:**
+
+```rust,ignore
+#[derive(Clone)]
+struct MyCustomSource {
+    table_schema: TableSchema,
+    projected_statistics: Option<Statistics>,
+    // other fields...
+}
+
+impl FileSource for MyCustomSource {
+    fn with_statistics(&self, statistics: Statistics) -> Arc<dyn FileSource> {
+        Arc::new(Self {
+            table_schema: self.table_schema.clone(),
+            projected_statistics: Some(statistics),
+            // other fields...
+        })
+    }
+
+    fn statistics(&self) -> Result<Statistics> {
+        Ok(self.projected_statistics.clone().unwrap_or_else(||
+            Statistics::new_unknown(self.table_schema.file_schema())
+        ))
+    }
+
+    // other methods...
+}
+```
+
+**After:**
+
+```rust,ignore
+#[derive(Clone)]
+struct MyCustomSource {
+    table_schema: TableSchema,
+    // projected_statistics field removed
+    // other fields...
+}
+
+impl FileSource for MyCustomSource {
+    // with_statistics method removed
+    // statistics method removed
+
+    // other methods...
+}
+```
+
+**Accessing statistics:**
+
+Statistics are now accessed through `FileScanConfig` instead of `FileSource`:
+
+```diff
+- let stats = config.file_source.statistics()?;
++ let stats = config.statistics();
+```
+
+Note that `FileScanConfig::statistics()` automatically marks statistics as inexact when filters are present, ensuring correctness when filters are pushed down.
+
+### Partition column handling moved out of `PhysicalExprAdapter`
+
+Partition column replacement is now a separate preprocessing step performed before expression rewriting via `PhysicalExprAdapter`. This change provides better separation of concerns and makes the adapter more focused on schema differences rather than partition value substitution.
+
+**Who is affected:**
+
+- Users who have custom implementations of `PhysicalExprAdapterFactory` that handle partition columns
+- Users who directly use the `FilePruner` API
+
+**Breaking changes:**
+
+1. `FilePruner::try_new()` signature changed: the `partition_fields` parameter has been removed since partition column handling is now done separately
+2. Partition column replacement must now be done via `replace_columns_with_literals()` before expressions are passed to the adapter
+
+**Migration guide:**
+
+If you have code that creates a `FilePruner` with partition fields:
+
+**Before:**
+
+```rust,ignore
+use datafusion_pruning::FilePruner;
+
+let pruner = FilePruner::try_new(
+    predicate,
+    file_schema,
+    partition_fields,  // This parameter is removed
+    file_stats,
+)?;
+```
+
+**After:**
+
+```rust,ignore
+use datafusion_pruning::FilePruner;
+
+// Partition fields are no longer needed
+let pruner = FilePruner::try_new(
+    predicate,
+    file_schema,
+    file_stats,
+)?;
+```
+
+If you have custom code that relies on `PhysicalExprAdapter` to handle partition columns, you must now call `replace_columns_with_literals()` separately:
+
+**Before:**
+
+```rust,ignore
+// Adapter handled partition column replacement internally
+let adapted_expr = adapter.rewrite(expr)?;
+```
+
+**After:**
+
+```rust,ignore
+use datafusion_physical_expr_adapter::replace_columns_with_literals;
+
+// Replace partition columns first
+let expr_with_literals = replace_columns_with_literals(expr, &partition_values)?;
+// Then apply the adapter
+let adapted_expr = adapter.rewrite(expr_with_literals)?;
+```
+
+### `build_row_filter` signature simplified
+
+The `build_row_filter` function in `datafusion-datasource-parquet` has been simplified to take a single schema parameter instead of two.
+The expectation is now that the filter has been adapted to the physical file schema (the arrow representation of the parquet file's schema) before being passed to this function
+using a `PhysicalExprAdapter` for example.
+
+**Who is affected:**
+
+- Users who call `build_row_filter` directly
+
+**Breaking changes:**
+
+The function signature changed from:
+
+```rust,ignore
+pub fn build_row_filter(
+    expr: &Arc<dyn PhysicalExpr>,
+    physical_file_schema: &SchemaRef,
+    predicate_file_schema: &SchemaRef,  // removed
+    metadata: &ParquetMetaData,
+    reorder_predicates: bool,
+    file_metrics: &ParquetFileMetrics,
+) -> Result<Option<RowFilter>>
+```
+
+To:
+
+```rust,ignore
+pub fn build_row_filter(
+    expr: &Arc<dyn PhysicalExpr>,
+    file_schema: &SchemaRef,
+    metadata: &ParquetMetaData,
+    reorder_predicates: bool,
+    file_metrics: &ParquetFileMetrics,
+) -> Result<Option<RowFilter>>
+```
+
+**Migration guide:**
+
+Remove the duplicate schema parameter from your call:
+
+```diff
+- build_row_filter(&predicate, &file_schema, &file_schema, metadata, reorder, metrics)
++ build_row_filter(&predicate, &file_schema, metadata, reorder, metrics)
+```
+
+### Planner now requires explicit opt-in for WITHIN GROUP syntax
+
+The SQL planner now enforces the aggregate UDF contract more strictly: the
+`WITHIN GROUP (ORDER BY ...)` syntax is accepted only if the aggregate UDAF
+explicitly advertises support by returning `true` from
+`AggregateUDFImpl::supports_within_group_clause()`.
+
+Previously the planner forwarded a `WITHIN GROUP` clause to order-sensitive
+aggregates even when they did not implement ordered-set semantics, which could
+cause queries such as `SUM(x) WITHIN GROUP (ORDER BY x)` to plan successfully.
+This behavior was too permissive and has been changed to match PostgreSQL and
+the documented semantics.
+
+Migration: If your UDAF intentionally implements ordered-set semantics and
+wants to accept the `WITHIN GROUP` SQL syntax, update your implementation to
+return `true` from `supports_within_group_clause()` and handle the ordering
+semantics in your accumulator implementation. If your UDAF is merely
+order-sensitive (but not an ordered-set aggregate), do not advertise
+`supports_within_group_clause()` and clients should use alternative function
+signatures (for example, explicit ordering as a function argument) instead.
+
+### `AggregateUDFImpl::supports_null_handling_clause` now defaults to `false`
+
+This method specifies whether an aggregate function allows `IGNORE NULLS`/`RESPECT NULLS`
+during SQL parsing, with the implication it respects these configs during computation.
+
+Most DataFusion aggregate functions silently ignored this syntax in prior versions
+as they did not make use of it and it was permitted by default. We change this so
+only the few functions which do respect this clause (e.g. `array_agg`, `first_value`,
+`last_value`) need to implement it.
+
+Custom user defined aggregate functions will also error if this syntax is used,
+unless they explicitly declare support by overriding the method.
+
+For example, SQL parsing will now fail for queries such as this:
+
+```sql
+SELECT median(c1) IGNORE NULLS FROM table
+```
+
+Instead of silently succeeding.
+
+### API change for `CacheAccessor` trait
+
+The remove API no longer requires a mutable instance
+
+### FFI crate updates
+
+Many of the structs in the `datafusion-ffi` crate have been updated to allow easier
+conversion to the underlying trait types they represent. This simplifies some code
+paths, but also provides an additional improvement in cases where library code goes
+through a round trip via the foreign function interface.
+
+To update your code, suppose you have a `FFI_SchemaProvider` called `ffi_provider`
+and you wish to use this as a `SchemaProvider`. In the old approach you would do
+something like:
+
+```rust,ignore
+    let foreign_provider: ForeignSchemaProvider = ffi_provider.into();
+    let foreign_provider = Arc::new(foreign_provider) as Arc<dyn SchemaProvider>;
+```
+
+This code should now be written as:
+
+```rust,ignore
+    let foreign_provider: Arc<dyn SchemaProvider + Send> = ffi_provider.into();
+    let foreign_provider = foreign_provider as Arc<dyn SchemaProvider>;
+```
+
+For the case of user defined functions, the updates are similar but you
+may need to change the way you call the creation of the `ScalarUDF`.
+Aggregate and window functions follow the same pattern.
+
+Previously you may write:
+
+```rust,ignore
+    let foreign_udf: ForeignScalarUDF = ffi_udf.try_into()?;
+    let foreign_udf: ScalarUDF = foreign_udf.into();
+```
+
+Instead this should now be:
+
+```rust,ignore
+    let foreign_udf: Arc<dyn ScalarUDFImpl> = ffi_udf.into();
+    let foreign_udf = ScalarUDF::new_from_shared_impl(foreign_udf);
+```
+
+When creating any of the following structs, we now require the user to
+provide a `TaskContextProvider` and optionally a `LogicalExtensionCodec`:
+
+- `FFI_CatalogListProvider`
+- `FFI_CatalogProvider`
+- `FFI_SchemaProvider`
+- `FFI_TableProvider`
+- `FFI_TableFunction`
+
+Each of these structs has a `new()` and a `new_with_ffi_codec()` method for
+instantiation. For example, when you previously would write
+
+```rust,ignore
+   let table = Arc::new(MyTableProvider::new());
+   let ffi_table = FFI_TableProvider::new(table, None);
+```
+
+Now you will need to provide a `TaskContextProvider`. The most common
+implementation of this trait is `SessionContext`.
+
+```rust,ignore
+   let ctx = Arc::new(SessionContext::default());
+   let table = Arc::new(MyTableProvider::new());
+   let ffi_table = FFI_TableProvider::new(table, None, ctx, None);
+```
+
+The alternative function to create these structures may be more convenient
+if you are doing many of these operations. A `FFI_LogicalExtensionCodec` will
+store the `TaskContextProvider` as well.
+
+```rust,ignore
+   let codec = Arc::new(DefaultLogicalExtensionCodec {});
+   let ctx = Arc::new(SessionContext::default());
+   let ffi_codec = FFI_LogicalExtensionCodec::new(codec, None, ctx);
+   let table = Arc::new(MyTableProvider::new());
+   let ffi_table = FFI_TableProvider::new_with_ffi_codec(table, None, ffi_codec);
+```
+
+Additional information about the usage of the `TaskContextProvider` can be
+found in the crate README.
+
+Additionally, the FFI structure for Scalar UDF's no longer contains a
+`return_type` call. This code was not used since the `ForeignScalarUDF`
+struct implements the `return_field_from_args` instead.
+
+### Projection handling moved from FileScanConfig to FileSource
+
+Projection handling has been moved from `FileScanConfig` into `FileSource` implementations. This enables format-specific projection pushdown (e.g., Parquet can push down struct field access, Vortex can push down computed expressions into un-decoded data).
+
+**Who is affected:**
+
+- Users who have implemented custom `FileSource` implementations
+- Users who use `FileScanConfigBuilder::with_projection_indices` directly
+
+**Breaking changes:**
+
+1. **`FileSource::with_projection` replaced with `try_pushdown_projection`:**
+
+   The `with_projection(&self, config: &FileScanConfig) -> Arc<dyn FileSource>` method has been removed and replaced with `try_pushdown_projection(&self, projection: &ProjectionExprs) -> Result<Option<Arc<dyn FileSource>>>`.
+
+2. **`FileScanConfig.projection_exprs` field removed:**
+
+   Projections are now stored in the `FileSource` directly, not in `FileScanConfig`.
+   Various public helper methods that access projection information have been removed from `FileScanConfig`.
+
+3. **`FileScanConfigBuilder::with_projection_indices` now returns `Result<Self>`:**
+
+   This method can now fail if the projection pushdown fails.
+
+4. **`FileSource::create_file_opener` now returns `Result<Arc<dyn FileOpener>>`:**
+
+   Previously returned `Arc<dyn FileOpener>` directly.
+   Any `FileSource` implementation that may fail to create a `FileOpener` should now return an appropriate error.
+
+5. **`DataSource::try_swapping_with_projection` signature changed:**
+
+   Parameter changed from `&[ProjectionExpr]` to `&ProjectionExprs`.
+
+**Migration guide:**
+
+If you have a custom `FileSource` implementation:
+
+**Before:**
+
+```rust,ignore
+impl FileSource for MyCustomSource {
+    fn with_projection(&self, config: &FileScanConfig) -> Arc<dyn FileSource> {
+        // Apply projection from config
+        Arc::new(Self { /* ... */ })
+    }
+
+    fn create_file_opener(
+        &self,
+        object_store: Arc<dyn ObjectStore>,
+        base_config: &FileScanConfig,
+        partition: usize,
+    ) -> Arc<dyn FileOpener> {
+        Arc::new(MyOpener { /* ... */ })
+    }
+}
+```
+
+**After:**
+
+```rust,ignore
+impl FileSource for MyCustomSource {
+    fn try_pushdown_projection(
+        &self,
+        projection: &ProjectionExprs,
+    ) -> Result<Option<Arc<dyn FileSource>>> {
+        // Return None if projection cannot be pushed down
+        // Return Some(new_source) with projection applied if it can
+        Ok(Some(Arc::new(Self {
+            projection: Some(projection.clone()),
+            /* ... */
+        })))
+    }
+
+    fn projection(&self) -> Option<&ProjectionExprs> {
+        self.projection.as_ref()
+    }
+
+    fn create_file_opener(
+        &self,
+        object_store: Arc<dyn ObjectStore>,
+        base_config: &FileScanConfig,
+        partition: usize,
+    ) -> Result<Arc<dyn FileOpener>> {
+        Ok(Arc::new(MyOpener { /* ... */ }))
+    }
+}
+```
+
+We recommend you look at [#18627](https://github.com/apache/datafusion/pull/18627)
+that introduced these changes for more examples for how this was handled for the various built in file sources.
+
+We have added [`SplitProjection`](https://docs.rs/datafusion-datasource/latest/datafusion_datasource/projection/struct.SplitProjection.html) and [`ProjectionOpener`](https://docs.rs/datafusion-datasource/latest/datafusion_datasource/projection/struct.ProjectionOpener.html) helpers to make it easier to handle projections in your `FileSource` implementations.
+
+For file sources that can only handle simple column selections (not computed expressions), use the `SplitProjection` and `ProjectionOpener` helpers to split the projection into pushdownable and non-pushdownable parts:
+
+```rust,ignore
+use datafusion_datasource::projection::{SplitProjection, ProjectionOpener};
+
+// In try_pushdown_projection:
+let split = SplitProjection::new(projection, self.table_schema())?;
+// Use split.file_projection() for what to push down to the file format
+// The ProjectionOpener wrapper will handle the rest
+```
+
+**For `FileScanConfigBuilder` users:**
+
+```diff
+let config = FileScanConfigBuilder::new(url, source)
+-   .with_projection_indices(Some(vec![0, 2, 3]))
++   .with_projection_indices(Some(vec![0, 2, 3]))?
+    .build();
+```
+
+### `SchemaAdapter` and `SchemaAdapterFactory` completely removed
+
+Following the deprecation announced in [DataFusion 49.0.0](49.0.0.md#deprecating-schemaadapterfactory-and-schemaadapter), `SchemaAdapterFactory` has been fully removed from Parquet scanning. This applies to both:
+
+The following symbols have been deprecated and will be removed in the next release:
+
+- `SchemaAdapter` trait
+- `SchemaAdapterFactory` trait
+- `SchemaMapper` trait
+- `SchemaMapping` struct
+- `DefaultSchemaAdapterFactory` struct
+
+These types were previously used to adapt record batch schemas during file reading.
+This functionality has been replaced by `PhysicalExprAdapterFactory`, which rewrites expressions at planning time rather than transforming batches at runtime.
+If you were using a custom `SchemaAdapterFactory` for schema adaptation (e.g., default column values, type coercion), you should now implement `PhysicalExprAdapterFactory` instead.
+See the [default column values example](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs) for how to implement a custom `PhysicalExprAdapterFactory`.
+
+**Migration guide:**
+
+If you implemented a custom `SchemaAdapterFactory`, migrate to `PhysicalExprAdapterFactory`.
+See the [default column values example](https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs) for a complete implementation.
diff --git a/_sources/library-user-guide/upgrading/53.0.0.md.txt b/_sources/library-user-guide/upgrading/53.0.0.md.txt
new file mode 100644
index 0000000000..4716a5734a
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/53.0.0.md.txt
@@ -0,0 +1,377 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Upgrade Guides
+
+## DataFusion 53.0.0
+
+**Note:** DataFusion `53.0.0` has not been released yet. The information provided
+*in this section pertains to features and changes that have already been merged
+*to the main branch and are awaiting release in this version. See [#19692] for
+\*more details.
+
+[#19692]: https://github.com/apache/datafusion/issues/19692
+
+### `FileSinkConfig` adds `file_output_mode`
+
+`FileSinkConfig` now includes a `file_output_mode: FileOutputMode` field to control
+single-file vs directory output behavior. Any code constructing `FileSinkConfig` via struct
+literals must initialize this field.
+
+The `FileOutputMode` enum has three variants:
+
+- `Automatic` (default): Infer output mode from the URL (extension/trailing `/` heuristic)
+- `SingleFile`: Write to a single file at the exact output path
+- `Directory`: Write to a directory with generated filenames
+
+**Before:**
+
+```rust,ignore
+FileSinkConfig {
+    // ...
+    file_extension: "parquet".into(),
+}
+```
+
+**After:**
+
+```rust,ignore
+use datafusion_datasource::file_sink_config::FileOutputMode;
+
+FileSinkConfig {
+    // ...
+    file_extension: "parquet".into(),
+    file_output_mode: FileOutputMode::Automatic,
+}
+```
+
+### `SimplifyInfo` trait removed, `SimplifyContext` now uses builder-style API
+
+The `SimplifyInfo` trait has been removed and replaced with the concrete `SimplifyContext` struct. This simplifies the expression simplification API and removes the need for trait objects.
+
+**Who is affected:**
+
+- Users who implemented custom `SimplifyInfo` implementations
+- Users who implemented `ScalarUDFImpl::simplify()` for custom scalar functions
+- Users who directly use `SimplifyContext` or `ExprSimplifier`
+
+**Breaking changes:**
+
+1. The `SimplifyInfo` trait has been removed entirely
+2. `SimplifyContext` no longer takes `&ExecutionProps` - it now uses a builder-style API with direct fields
+3. `ScalarUDFImpl::simplify()` now takes `&SimplifyContext` instead of `&dyn SimplifyInfo`
+4. Time-dependent function simplification (e.g., `now()`) is now optional - if `query_execution_start_time` is `None`, these functions won't be simplified
+
+**Migration guide:**
+
+If you implemented a custom `SimplifyInfo`:
+
+**Before:**
+
+```rust,ignore
+impl SimplifyInfo for MySimplifyInfo {
+    fn is_boolean_type(&self, expr: &Expr) -> Result<bool> { ... }
+    fn nullable(&self, expr: &Expr) -> Result<bool> { ... }
+    fn execution_props(&self) -> &ExecutionProps { ... }
+    fn get_data_type(&self, expr: &Expr) -> Result<DataType> { ... }
+}
+```
+
+**After:**
+
+Use `SimplifyContext` directly with the builder-style API:
+
+```rust,ignore
+let context = SimplifyContext::default()
+    .with_schema(schema)
+    .with_config_options(config_options)
+    .with_query_execution_start_time(Some(Utc::now())); // or use .with_current_time()
+```
+
+If you implemented `ScalarUDFImpl::simplify()`:
+
+**Before:**
+
+```rust,ignore
+fn simplify(
+    &self,
+    args: Vec<Expr>,
+    info: &dyn SimplifyInfo,
+) -> Result<ExprSimplifyResult> {
+    let now_ts = info.execution_props().query_execution_start_time;
+    // ...
+}
+```
+
+**After:**
+
+```rust,ignore
+fn simplify(
+    &self,
+    args: Vec<Expr>,
+    info: &SimplifyContext,
+) -> Result<ExprSimplifyResult> {
+    // query_execution_start_time is now Option<DateTime<Utc>>
+    // Return Original if time is not set (simplification skipped)
+    let Some(now_ts) = info.query_execution_start_time() else {
+        return Ok(ExprSimplifyResult::Original(args));
+    };
+    // ...
+}
+```
+
+If you created `SimplifyContext` from `ExecutionProps`:
+
+**Before:**
+
+```rust,ignore
+let props = ExecutionProps::new();
+let context = SimplifyContext::new(&props).with_schema(schema);
+```
+
+**After:**
+
+```rust,ignore
+let context = SimplifyContext::default()
+    .with_schema(schema)
+    .with_config_options(config_options)
+    .with_current_time(); // Sets query_execution_start_time to Utc::now()
+```
+
+See [`SimplifyContext` documentation](https://docs.rs/datafusion-expr/latest/datafusion_expr/simplify/struct.SimplifyContext.html) for more details.
+
+### Struct Casting Now Requires Field Name Overlap
+
+DataFusion's struct casting mechanism previously allowed casting between structs with differing field names if the field counts matched. This "positional fallback" behavior could silently misalign fields and cause data corruption.
+
+**Breaking Change:**
+
+Starting with DataFusion 53.0.0, struct casts now require **at least one overlapping field name** between the source and target structs. Casts without field name overlap are rejected at plan time with a clear error message.
+
+**Who is affected:**
+
+- Applications that cast between structs with no overlapping field names
+- Queries that rely on positional struct field mapping (e.g., casting `struct(x, y)` to `struct(a, b)` based solely on position)
+- Code that constructs or transforms struct columns programmatically
+
+**Migration guide:**
+
+If you encounter an error like:
+
+```text
+Cannot cast struct with 2 fields to 2 fields because there is no field name overlap
+```
+
+You must explicitly rename or map fields to ensure at least one field name matches. Here are common patterns:
+
+**Example 1: Source and target field names already match (Name-based casting)**
+
+**Success case (field names align):**
+
+```sql
+-- source_col has schema: STRUCT<x INT, y INT>
+-- Casting to the same field names succeeds (no-op or type validation only)
+SELECT CAST(source_col AS STRUCT<x INT, y INT>) FROM table1;
+```
+
+**Example 2: Source and target field names differ (Migration scenario)**
+
+**What fails now (no field name overlap):**
+
+```sql
+-- source_col has schema: STRUCT<a INT, b INT>
+-- This FAILS because there is no field name overlap:
+-- ❌ SELECT CAST(source_col AS STRUCT<x INT, y INT>) FROM table1;
+-- Error: Cannot cast struct with 2 fields to 2 fields because there is no field name overlap
+```
+
+**Migration options (must align names):**
+
+**Option A: Use struct constructor for explicit field mapping**
+
+```sql
+-- source_col has schema: STRUCT<a INT, b INT>
+-- Use STRUCT_CONSTRUCT with explicit field names
+SELECT STRUCT_CONSTRUCT(
+    'x', source_col.a,
+    'y', source_col.b
+) AS renamed_struct FROM table1;
+```
+
+**Option B: Rename in the cast target to match source names**
+
+```sql
+-- source_col has schema: STRUCT<a INT, b INT>
+-- Cast to target with matching field names
+SELECT CAST(source_col AS STRUCT<a INT, b INT>) FROM table1;
+```
+
+**Example 3: Using struct constructors in Rust API**
+
+If you need to map fields programmatically, build the target struct explicitly:
+
+```rust,ignore
+// Build the target struct with explicit field names
+let target_struct_type = DataType::Struct(vec![
+    FieldRef::new("x", DataType::Int32),
+    FieldRef::new("y", DataType::Utf8),
+]);
+
+// Use struct constructors rather than casting for field mapping
+// This makes the field mapping explicit and unambiguous
+// Use struct builders or row constructors that preserve your mapping logic
+```
+
+**Why this change:**
+
+1. **Safety:** Field names are now the primary contract for struct compatibility
+2. **Explicitness:** Prevents silent data misalignment caused by positional assumptions
+3. **Consistency:** Matches DuckDB's behavior and aligns with other SQL engines that enforce name-based matching
+4. **Debuggability:** Errors now appear at plan time rather than as silent data corruption
+
+See [Issue #19841](https://github.com/apache/datafusion/issues/19841) and [PR #19955](https://github.com/apache/datafusion/pull/19955) for more details.
+
+### `FilterExec` builder methods deprecated
+
+The following methods on `FilterExec` have been deprecated in favor of using `FilterExecBuilder`:
+
+- `with_projection()`
+- `with_batch_size()`
+
+**Who is affected:**
+
+- Users who create `FilterExec` instances and use these methods to configure them
+
+**Migration guide:**
+
+Use `FilterExecBuilder` instead of chaining method calls on `FilterExec`:
+
+**Before:**
+
+```rust,ignore
+let filter = FilterExec::try_new(predicate, input)?
+    .with_projection(Some(vec![0, 2]))?
+    .with_batch_size(8192)?;
+```
+
+**After:**
+
+```rust,ignore
+let filter = FilterExecBuilder::new(predicate, input)
+    .with_projection(Some(vec![0, 2]))
+    .with_batch_size(8192)
+    .build()?;
+```
+
+The builder pattern is more efficient as it computes properties once during `build()` rather than recomputing them for each method call.
+
+Note: `with_default_selectivity()` is not deprecated as it simply updates a field value and does not require the overhead of the builder pattern.
+
+### Protobuf conversion trait added
+
+A new trait, `PhysicalProtoConverterExtension`, has been added to the `datafusion-proto`
+crate. This is used for controlling the process of conversion of physical plans and
+expressions to and from their protobuf equivalents. The methods for conversion now
+require an additional parameter.
+
+The primary APIs for interacting with this crate have not been modified, so most users
+should not need to make any changes. If you do require this trait, you can use the
+`DefaultPhysicalProtoConverter` implementation.
+
+For example, to convert a sort expression protobuf node you can make the following
+updates:
+
+**Before:**
+
+```rust,ignore
+let sort_expr = parse_physical_sort_expr(
+    sort_proto,
+    ctx,
+    input_schema,
+    codec,
+);
+```
+
+**After:**
+
+```rust,ignore
+let converter = DefaultPhysicalProtoConverter {};
+let sort_expr = parse_physical_sort_expr(
+    sort_proto,
+    ctx,
+    input_schema,
+    codec,
+    &converter
+);
+```
+
+Similarly to convert from a physical sort expression into a protobuf node:
+
+**Before:**
+
+```rust,ignore
+let sort_proto = serialize_physical_sort_expr(
+    sort_expr,
+    codec,
+);
+```
+
+**After:**
+
+```rust,ignore
+let converter = DefaultPhysicalProtoConverter {};
+let sort_proto = serialize_physical_sort_expr(
+    sort_expr,
+    codec,
+    &converter,
+);
+```
+
+### `generate_series` and `range` table functions changed
+
+The `generate_series` and `range` table functions now return an empty set when the interval is invalid, instead of an error.
+This behavior is consistent with systems like PostgreSQL.
+
+Before:
+
+```sql
+> select * from generate_series(0, -1);
+Error during planning: Start is bigger than end, but increment is positive: Cannot generate infinite series
+
+> select * from range(0, -1);
+Error during planning: Start is bigger than end, but increment is positive: Cannot generate infinite series
+```
+
+Now:
+
+```sql
+> select * from generate_series(0, -1);
++-------+
+| value |
++-------+
++-------+
+0 row(s) fetched.
+
+> select * from range(0, -1);
++-------+
+| value |
++-------+
++-------+
+0 row(s) fetched.
+```
diff --git a/_sources/library-user-guide/upgrading/index.rst.txt b/_sources/library-user-guide/upgrading/index.rst.txt
new file mode 100644
index 0000000000..16bb33b759
--- /dev/null
+++ b/_sources/library-user-guide/upgrading/index.rst.txt
@@ -0,0 +1,32 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+.. or more contributor license agreements.  See the NOTICE file
+.. distributed with this work for additional information
+.. regarding copyright ownership.  The ASF licenses this file
+.. to you under the Apache License, Version 2.0 (the
+.. "License"); you may not use this file except in compliance
+.. with the License.  You may obtain a copy of the License at
+
+..   http://www.apache.org/licenses/LICENSE-2.0
+
+.. Unless required by applicable law or agreed to in writing,
+.. software distributed under the License is distributed on an
+.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+.. KIND, either express or implied.  See the License for the
+.. specific language governing permissions and limitations
+.. under the License.
+
+Upgrade Guides
+==============
+
+.. toctree::
+   :maxdepth: 1
+
+   DataFusion 53.0.0 <53.0.0>
+   DataFusion 52.0.0 <52.0.0>
+   DataFusion 51.0.0 <51.0.0>
+   DataFusion 50.0.0 <50.0.0>
+   DataFusion 49.0.0 <49.0.0>
+   DataFusion 48.0.1 <48.0.1>
+   DataFusion 48.0.0 <48.0.0>
+   DataFusion 47.0.0 <47.0.0>
+   DataFusion 46.0.0 <46.0.0>
diff --git a/contributor-guide/api-health.html b/contributor-guide/api-health.html
index cca38faf30..1cc3101968 100644
--- a/contributor-guide/api-health.html
+++ b/contributor-guide/api-health.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
@@ -416,7 +427,7 @@ APIs to give users time to adjust to the changes.</p>
 <h2>Upgrade Guides<a class="headerlink" href="#upgrade-guides" title="Link to this heading">#</a></h2>
 <p>When making changes that require DataFusion users to make changes to their code
 as part of an upgrade please consider adding documentation to the version
-specific <a class="reference internal" href="../library-user-guide/upgrading.html"><span class="std std-doc">Upgrade Guide</span></a></p>
+specific <a class="reference internal" href="../library-user-guide/upgrading/index.html"><span class="doc std std-doc">Upgrade Guide</span></a></p>
 </section>
 <section id="breaking-changes">
 <h2>Breaking Changes<a class="headerlink" href="#breaking-changes" title="Link to this heading">#</a></h2>
diff --git a/contributor-guide/architecture.html b/contributor-guide/architecture.html
index e2dc41ad01..2e550703c2 100644
--- a/contributor-guide/architecture.html
+++ b/contributor-guide/architecture.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/architecture/dependency-graph.html b/contributor-guide/architecture/dependency-graph.html
index d551f10728..9a9a622449 100644
--- a/contributor-guide/architecture/dependency-graph.html
+++ b/contributor-guide/architecture/dependency-graph.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/communication.html b/contributor-guide/communication.html
index 5cc5fc2a29..dec7625724 100644
--- a/contributor-guide/communication.html
+++ b/contributor-guide/communication.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/development_environment.html b/contributor-guide/development_environment.html
index 8ea3237ec7..cd6d264daa 100644
--- a/contributor-guide/development_environment.html
+++ b/contributor-guide/development_environment.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/governance.html b/contributor-guide/governance.html
index 9e1d93544c..1dab3c3a7a 100644
--- a/contributor-guide/governance.html
+++ b/contributor-guide/governance.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/gsoc/gsoc_application_guidelines_2025.html b/contributor-guide/gsoc/gsoc_application_guidelines_2025.html
index f1ebb3eea6..8c575c43a8 100644
--- a/contributor-guide/gsoc/gsoc_application_guidelines_2025.html
+++ b/contributor-guide/gsoc/gsoc_application_guidelines_2025.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/gsoc/gsoc_project_ideas_2025.html b/contributor-guide/gsoc/gsoc_project_ideas_2025.html
index 26d2c7c2ff..f0642a9f7a 100644
--- a/contributor-guide/gsoc/gsoc_project_ideas_2025.html
+++ b/contributor-guide/gsoc/gsoc_project_ideas_2025.html
@@ -277,7 +277,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/gsoc/index.html b/contributor-guide/gsoc/index.html
index 04a0abd225..873dceb05e 100644
--- a/contributor-guide/gsoc/index.html
+++ b/contributor-guide/gsoc/index.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/howtos.html b/contributor-guide/howtos.html
index 69056cebec..a99e8fd393 100644
--- a/contributor-guide/howtos.html
+++ b/contributor-guide/howtos.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/index.html b/contributor-guide/index.html
index cc07824c1c..6d8743fe74 100644
--- a/contributor-guide/index.html
+++ b/contributor-guide/index.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/inviting.html b/contributor-guide/inviting.html
index c218e6606b..e206c95b73 100644
--- a/contributor-guide/inviting.html
+++ b/contributor-guide/inviting.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/roadmap.html b/contributor-guide/roadmap.html
index a3a237efff..351fb64124 100644
--- a/contributor-guide/roadmap.html
+++ b/contributor-guide/roadmap.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/specification/index.html b/contributor-guide/specification/index.html
index 85c84aca55..3f77357c61 100644
--- a/contributor-guide/specification/index.html
+++ b/contributor-guide/specification/index.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/specification/invariants.html b/contributor-guide/specification/invariants.html
index c621328a28..1652c6e6d3 100644
--- a/contributor-guide/specification/invariants.html
+++ b/contributor-guide/specification/invariants.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/specification/output-field-name-semantic.html b/contributor-guide/specification/output-field-name-semantic.html
index eeadc9ec9e..2b0f0e6e4f 100644
--- a/contributor-guide/specification/output-field-name-semantic.html
+++ b/contributor-guide/specification/output-field-name-semantic.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/contributor-guide/testing.html b/contributor-guide/testing.html
index 83b8d97f86..3a26287405 100644
--- a/contributor-guide/testing.html
+++ b/contributor-guide/testing.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/download.html b/download.html
index e4cfe94053..7e0d0cb327 100644
--- a/download.html
+++ b/download.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/genindex.html b/genindex.html
index 9850d7410d..c2561e83d1 100644
--- a/genindex.html
+++ b/genindex.html
@@ -273,7 +273,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/index.html b/index.html
index 51af8801a3..f13bee3c39 100644
--- a/index.html
+++ b/index.html
@@ -279,7 +279,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="library-user-guide/upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="library-user-guide/upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
@@ -459,7 +470,7 @@ See the <a class="reference external" href="https://datafusion.apache.org/contri
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="library-user-guide/upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1"><a class="reference internal" href="library-user-guide/upgrading/index.html">Upgrade Guides</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="library-user-guide/extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/building-logical-plans.html b/library-user-guide/building-logical-plans.html
index 5d1774e471..5c2306f918 100644
--- a/library-user-guide/building-logical-plans.html
+++ b/library-user-guide/building-logical-plans.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/catalogs.html b/library-user-guide/catalogs.html
index 6621536ec9..1b20a34ca5 100644
--- a/library-user-guide/catalogs.html
+++ b/library-user-guide/catalogs.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/custom-table-providers.html b/library-user-guide/custom-table-providers.html
index 281f502965..5e33a8cd21 100644
--- a/library-user-guide/custom-table-providers.html
+++ b/library-user-guide/custom-table-providers.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/extending-operators.html b/library-user-guide/extending-operators.html
index 1cdc9a8bdb..c7231465e3 100644
--- a/library-user-guide/extending-operators.html
+++ b/library-user-guide/extending-operators.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/extending-sql.html b/library-user-guide/extending-sql.html
index dae55c158f..a78f15a709 100644
--- a/library-user-guide/extending-sql.html
+++ b/library-user-guide/extending-sql.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1 current active"><a class="current reference internal" href="#">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/extensions.html b/library-user-guide/extensions.html
index d521d1d62a..75ae26914c 100644
--- a/library-user-guide/extensions.html
+++ b/library-user-guide/extensions.html
@@ -47,7 +47,7 @@
     <link rel="index" title="Index" href="../genindex.html" />
     <link rel="search" title="Search" href="../search.html" />
     <link rel="next" title="Using the SQL API" href="using-the-sql-api.html" />
-    <link rel="prev" title="Upgrade Guides" href="upgrading.html" />
+    <link rel="prev" title="Upgrade Guides" href="upgrading/46.0.0.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1"/>
   <meta name="docsearch:language" content="en"/>
   <meta name="docsearch:version" content="" />
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1 current active"><a class="current reference internal" href="#">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
@@ -471,7 +482,7 @@ your extension.</p>
                   
 <div class="prev-next-area">
     <a class="left-prev"
-       href="upgrading.html"
+       href="upgrading/46.0.0.html"
        title="previous page">
       <i class="fa-solid fa-angle-left"></i>
       <div class="prev-next-info">
diff --git a/library-user-guide/functions/adding-udfs.html b/library-user-guide/functions/adding-udfs.html
index 0060238da7..4a623b4876 100644
--- a/library-user-guide/functions/adding-udfs.html
+++ b/library-user-guide/functions/adding-udfs.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/functions/index.html b/library-user-guide/functions/index.html
index 05f12adb8a..3afa360cb9 100644
--- a/library-user-guide/functions/index.html
+++ b/library-user-guide/functions/index.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/functions/spark.html b/library-user-guide/functions/spark.html
index 8cbfd8c12e..3b6351b960 100644
--- a/library-user-guide/functions/spark.html
+++ b/library-user-guide/functions/spark.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/index.html b/library-user-guide/index.html
index fae3b9fc47..ab430a5cd3 100644
--- a/library-user-guide/index.html
+++ b/library-user-guide/index.html
@@ -46,7 +46,7 @@
     <link rel="icon" href="../_static/favicon.svg"/>
     <link rel="index" title="Index" href="../genindex.html" />
     <link rel="search" title="Search" href="../search.html" />
-    <link rel="next" title="Upgrade Guides" href="upgrading.html" />
+    <link rel="next" title="Upgrade Guides" href="upgrading/index.html" />
     <link rel="prev" title="Frequently Asked Questions" href="../user-guide/faq.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1"/>
   <meta name="docsearch:language" content="en"/>
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1 current active"><a class="current reference internal" href="#">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
@@ -445,7 +456,7 @@ useful place to get the lay of the land before starting down a specific path.</p
       </div>
     </a>
     <a class="right-next"
-       href="upgrading.html"
+       href="upgrading/index.html"
        title="next page">
       <div class="prev-next-info">
         <p class="prev-next-subtitle">next</p>
diff --git a/library-user-guide/profiling.html b/library-user-guide/profiling.html
index 8c7774682e..cb4662a94e 100644
--- a/library-user-guide/profiling.html
+++ b/library-user-guide/profiling.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/query-optimizer.html b/library-user-guide/query-optimizer.html
index 4f36096006..66e450be6c 100644
--- a/library-user-guide/query-optimizer.html
+++ b/library-user-guide/query-optimizer.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/table-constraints.html b/library-user-guide/table-constraints.html
index dde49cc7d3..01f0cecb11 100644
--- a/library-user-guide/table-constraints.html
+++ b/library-user-guide/table-constraints.html
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="upgrading/index.html">Upgrade Guides</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="upgrading/46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
diff --git a/library-user-guide/upgrading.html b/library-user-guide/upgrading.html
deleted file mode 100644
index e79e507df1..0000000000
--- a/library-user-guide/upgrading.html
+++ /dev/null
@@ -1,2574 +0,0 @@
-
-<!DOCTYPE html>
-
-
-<html lang="en" data-content_root="../" >
-
-  <head>
-    <meta charset="utf-8" />
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
-
-    <title>Upgrade Guides &#8212; Apache DataFusion  documentation</title>
-  
-  
-  
-  <script data-cfasync="false">
-    document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
-    document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
-  </script>
-  <!--
-    this give us a css class that will be invisible only if js is disabled
-  -->
-  <noscript>
-    <style>
-      .pst-js-only { display: none !important; }
-
-    </style>
-  </noscript>
-  
-  <!-- Loaded before other Sphinx assets -->
-  <link href="../_static/styles/theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
-<link href="../_static/styles/pydata-sphinx-theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
-
-    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=8f2a1f02" />
-    <link rel="stylesheet" type="text/css" href="../_static/theme_overrides.css?v=d08b24aa" />
-  
-  <!-- So that users can add custom icons -->
-  <script src="../_static/scripts/fontawesome.js?digest=8878045cc6db502f8baf"></script>
-  <!-- Pre-loaded scripts that we'll load fully later -->
-  <link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf" />
-<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf" />
-
-    <script src="../_static/documentation_options.js?v=5929fcd5"></script>
-    <script src="../_static/doctools.js?v=fd6eb6e6"></script>
-    <script src="../_static/sphinx_highlight.js?v=6ffebe34"></script>
-    <script>DOCUMENTATION_OPTIONS.pagename = 'library-user-guide/upgrading';</script>
-    <link rel="icon" href="../_static/favicon.svg"/>
-    <link rel="index" title="Index" href="../genindex.html" />
-    <link rel="search" title="Search" href="../search.html" />
-    <link rel="next" title="Extensions List" href="extensions.html" />
-    <link rel="prev" title="Introduction" href="index.html" />
-  <meta name="viewport" content="width=device-width, initial-scale=1"/>
-  <meta name="docsearch:language" content="en"/>
-  <meta name="docsearch:version" content="" />
-  </head>
-  
-  
-  <body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">
-
-  
-  
-  <div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>
-  
-  <div id="pst-scroll-pixel-helper"></div>
-  
-  <button type="button" class="btn rounded-pill" id="pst-back-to-top">
-    <i class="fa-solid fa-arrow-up"></i>Back to top</button>
-
-  
-  <dialog id="pst-search-dialog">
-    
-<form class="bd-search d-flex align-items-center"
-      action="../search.html"
-      method="get">
-  <i class="fa-solid fa-magnifying-glass"></i>
-  <input type="search"
-         class="form-control"
-         name="q"
-         placeholder="Search the docs ..."
-         aria-label="Search the docs ..."
-         autocomplete="off"
-         autocorrect="off"
-         autocapitalize="off"
-         spellcheck="false"/>
-  <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
-</form>
-  </dialog>
-
-  <div class="pst-async-banner-revealer d-none">
-  <aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
-</div>
-
-  
-    <header class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
-<div class="bd-header__inner bd-page-width">
-  <button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation">
-    <span class="fa-solid fa-bars"></span>
-  </button>
-  
-  
-  <div class="col-lg-3 navbar-header-items__start">
-    
-      <div class="navbar-item">
-
-  
-    
-  
-
-<a class="navbar-brand logo" href="../index.html">
-  
-  
-  
-  
-  
-    
-    
-      
-    
-    
-    <img src="../_static/original.svg" class="logo__image only-light" alt="Apache DataFusion  documentation - Home"/>
-    <img src="../_static/original_dark.svg" class="logo__image only-dark pst-js-only" alt="Apache DataFusion  documentation - Home"/>
-  
-  
-</a></div>
-    
-  </div>
-  
-  <div class="col-lg-9 navbar-header-items">
-    
-    
-    <div class="navbar-header-items__end">
-      
-        <div class="navbar-item navbar-persistent--container">
-          
-
-<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
- <i class="fa-solid fa-magnifying-glass"></i>
- <span class="search-button__default-text">Search</span>
- <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
-</button>
-        </div>
-      
-      
-        <div class="navbar-item">
-
-<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode"  data-bs-placement="bottom" data-bs-toggle="tooltip">
-  <i class="theme-switch fa-solid fa-sun                fa-lg" data-mode="light" title="Light"></i>
-  <i class="theme-switch fa-solid fa-moon               fa-lg" data-mode="dark"  title="Dark"></i>
-  <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"  title="System Settings"></i>
-</button></div>
-      
-    </div>
-    
-  </div>
-  
-  
-    <div class="navbar-persistent--mobile">
-
-<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
- <i class="fa-solid fa-magnifying-glass"></i>
- <span class="search-button__default-text">Search</span>
- <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
-</button>
-    </div>
-  
-
-  
-    <button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page">
-      <span class="fa-solid fa-outdent"></span>
-    </button>
-  
-</div>
-
-    </header>
-  
-
-  <div class="bd-container">
-    <div class="bd-container__inner bd-page-width">
-      
-      
-      
-      <dialog id="pst-primary-sidebar-modal"></dialog>
-      <div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
-        
-
-  
-  <div class="sidebar-header-items sidebar-primary__section">
-    
-    
-    
-    
-      <div class="sidebar-header-items__end">
-        
-          <div class="navbar-item">
-
-<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode"  data-bs-placement="bottom" data-bs-toggle="tooltip">
-  <i class="theme-switch fa-solid fa-sun                fa-lg" data-mode="light" title="Light"></i>
-  <i class="theme-switch fa-solid fa-moon               fa-lg" data-mode="dark"  title="Dark"></i>
-  <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"  title="System Settings"></i>
-</button></div>
-        
-      </div>
-    
-  </div>
-  
-    <div class="sidebar-primary-items__start sidebar-primary__section">
-        <div class="sidebar-primary-item"><nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
-
-  <div class="bd-toc-item active">
-    
-    <p aria-level="2" class="caption" role="heading"><span class="caption-text">ASF Links</span></p>
-<ul class="nav bd-sidenav">
-<li class="toctree-l1"><a class="reference external" href="https://apache.org">Apache Software Foundation</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/licenses/">License</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/foundation/sponsorship.html">Donate</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/security/">Security</a></li>
-</ul>
-<p aria-level="2" class="caption" role="heading"><span class="caption-text">Links</span></p>
-<ul class="nav bd-sidenav">
-<li class="toctree-l1"><a class="reference external" href="https://github.com/apache/datafusion">GitHub and Issue Tracker</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://crates.io/crates/datafusion">crates.io</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">API Docs</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/blog/">Blog</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">Code of conduct</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../download.html">Download</a></li>
-</ul>
-<p aria-level="2" class="caption" role="heading"><span class="caption-text">User Guide</span></p>
-<ul class="nav bd-sidenav">
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/introduction.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/example-usage.html">Example Usage</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/features.html">Features</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/concepts-readings-events.html">Concepts, Readings, Events</a></li>
-
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/crate-configuration.html">Crate Configuration</a></li>
-<li class="toctree-l1 has-children"><a class="reference internal" href="../user-guide/cli/index.html">DataFusion CLI</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/cli/overview.html">Overview</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/cli/installation.html">Installation</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/cli/usage.html">Usage</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/cli/datasources.html">Local Files / Directories</a></li>
-
-
-
-
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/cli/functions.html">CLI Specific Functions</a></li>
-</ul>
-</details></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/dataframe.html">DataFrame API</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/arrow-introduction.html">Gentle Arrow Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/expressions.html">Expression API</a></li>
-<li class="toctree-l1 has-children"><a class="reference internal" href="../user-guide/sql/index.html">SQL Reference</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/data_types.html">Data Types</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/struct_coercion.html">Struct Type Coercion and Field Mapping</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/select.html">SELECT syntax</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/subqueries.html">Subqueries</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/ddl.html">DDL</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/dml.html">DML</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/explain.html">EXPLAIN</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/information_schema.html">Information Schema</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/operators.html">Operators and Literals</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/aggregate_functions.html">Aggregate Functions</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/window_functions.html">Window Functions</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/scalar_functions.html">Scalar Functions</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/special_functions.html">Special Functions</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/format_options.html">Format Options</a></li>
-
-<li class="toctree-l2"><a class="reference internal" href="../user-guide/sql/prepared_statements.html">Prepared Statements</a></li>
-</ul>
-</details></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/configs.html">Configuration Settings</a></li>
-
-
-
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/explain-usage.html">Reading Explain Plans</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/metrics.html">Metrics</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../user-guide/faq.html">Frequently Asked Questions</a></li>
-
-</ul>
-<p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
-<ul class="current nav bd-sidenav">
-<li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
-<li class="toctree-l1 current active"><a class="current reference internal" href="#">Upgrade Guides</a></li>
-<li class="toctree-l1"><a class="reference internal" href="extensions.html">Extensions List</a></li>
-<li class="toctree-l1"><a class="reference internal" href="using-the-sql-api.html">Using the SQL API</a></li>
-<li class="toctree-l1"><a class="reference internal" href="extending-sql.html">Extending SQL Syntax</a></li>
-<li class="toctree-l1"><a class="reference internal" href="working-with-exprs.html">Working with <code class="docutils literal notranslate"><span class="pre">Expr</span></code>s</a></li>
-<li class="toctree-l1"><a class="reference internal" href="using-the-dataframe-api.html">Using the DataFrame API</a></li>
-
-<li class="toctree-l1"><a class="reference internal" href="building-logical-plans.html">Building Logical Plans</a></li>
-<li class="toctree-l1"><a class="reference internal" href="catalogs.html">Catalogs, Schemas, and Tables</a></li>
-<li class="toctree-l1 has-children"><a class="reference internal" href="functions/index.html">Functions</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
-<li class="toctree-l2"><a class="reference internal" href="functions/adding-udfs.html">Adding User Defined Functions: Scalar/Window/Aggregate/Table Functions</a></li>
-<li class="toctree-l2"><a class="reference internal" href="functions/spark.html">Spark Compatible Functions</a></li>
-</ul>
-</details></li>
-<li class="toctree-l1"><a class="reference internal" href="custom-table-providers.html">Custom Table Provider</a></li>
-<li class="toctree-l1"><a class="reference internal" href="table-constraints.html">Table Constraint Enforcement</a></li>
-<li class="toctree-l1"><a class="reference internal" href="extending-operators.html">Extending Operators</a></li>
-<li class="toctree-l1"><a class="reference internal" href="profiling.html">Profiling Cookbook</a></li>
-<li class="toctree-l1"><a class="reference internal" href="query-optimizer.html">Query Optimizer</a></li>
-</ul>
-<p aria-level="2" class="caption" role="heading"><span class="caption-text">Contributor Guide</span></p>
-<ul class="nav bd-sidenav">
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/index.html">Introduction</a></li>
-
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/communication.html">Community Communication</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/development_environment.html">Development Environment</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/architecture.html">Architecture</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/architecture/dependency-graph.html">Workspace Dependency Graph</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/testing.html">Testing</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/api-health.html">API health policy</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/howtos.html">HOWTOs</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/roadmap.html">Roadmap and Improvement Proposals</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/governance.html">Governance</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../contributor-guide/inviting.html">Inviting New Committers and PMC Members</a></li>
-<li class="toctree-l1 has-children"><a class="reference internal" href="../contributor-guide/specification/index.html">Specifications</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
-<li class="toctree-l2"><a class="reference internal" href="../contributor-guide/specification/invariants.html">Invariants</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../contributor-guide/specification/output-field-name-semantic.html">Output field name semantics</a></li>
-</ul>
-</details></li>
-<li class="toctree-l1 has-children"><a class="reference internal" href="../contributor-guide/gsoc/index.html">Google Summer of Code (GSOC)</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
-<li class="toctree-l2"><a class="reference internal" href="../contributor-guide/gsoc/gsoc_application_guidelines_2025.html">GSoC Application Guidelines (2025)</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../contributor-guide/gsoc/gsoc_project_ideas_2025.html">GSoC Project Ideas (2025)</a></li>
-</ul>
-</details></li>
-</ul>
-<p aria-level="2" class="caption" role="heading"><span class="caption-text">DataFusion Subprojects</span></p>
-<ul class="nav bd-sidenav">
-<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/ballista/">DataFusion Ballista</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/comet/">DataFusion Comet</a></li>
-<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/python/">DataFusion Python</a></li>
-</ul>
-
-    
-  </div>
-</nav></div>
-    </div>
-  
-  
-  <div class="sidebar-primary-items__end sidebar-primary__section">
-      <div class="sidebar-primary-item">
-<div id="ethical-ad-placement"
-      class="flat"
-      data-ea-publisher="readthedocs"
-      data-ea-type="readthedocs-sidebar"
-      data-ea-manual="true">
-</div></div>
-  </div>
-
-
-      </div>
-      
-      <main id="main-content" class="bd-main" role="main">
-        
-        
-          <div class="bd-content">
-            <div class="bd-article-container">
-              
-              <div class="bd-header-article d-print-none">
-<div class="header-article-items header-article__inner">
-  
-    <div class="header-article-items__start">
-      
-        <div class="header-article-item">
-
-<nav aria-label="Breadcrumb" class="d-print-none">
-  <ul class="bd-breadcrumbs">
-    
-    <li class="breadcrumb-item breadcrumb-home">
-      <a href="../index.html" class="nav-link" aria-label="Home">
-        <i class="fa-solid fa-home"></i>
-      </a>
-    </li>
-    <li class="breadcrumb-item active" aria-current="page"><span class="ellipsis">Upgrade Guides</span></li>
-  </ul>
-</nav>
-</div>
-      
-    </div>
-  
-  
-</div>
-</div>
-              
-              
-              
-                
-<div id="searchbox"></div>
-                <article class="bd-article">
-                  
-  <!---
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-<section id="upgrade-guides">
-<h1>Upgrade Guides<a class="headerlink" href="#upgrade-guides" title="Link to this heading">#</a></h1>
-<section id="datafusion-53-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">53.0.0</span></code><a class="headerlink" href="#datafusion-53-0-0" title="Link to this heading">#</a></h2>
-<p><strong>Note:</strong> DataFusion <code class="docutils literal notranslate"><span class="pre">53.0.0</span></code> has not been released yet. The information provided
-*in this section pertains to features and changes that have already been merged
-*to the main branch and are awaiting release in this version. See <a class="reference external" href="https://github.com/apache/datafusion/issues/19692">#19692</a> for
-*more details.</p>
-<section id="filesinkconfig-adds-file-output-mode">
-<h3><code class="docutils literal notranslate"><span class="pre">FileSinkConfig</span></code> adds <code class="docutils literal notranslate"><span class="pre">file_output_mode</span></code><a class="headerlink" href="#filesinkconfig-adds-file-output-mode" title="Link to this heading">#</a></h3>
-<p><code class="docutils literal notranslate"><span class="pre">FileSinkConfig</span></code> now includes a <code class="docutils literal notranslate"><span class="pre">file_output_mode:</span> <span class="pre">FileOutputMode</span></code> field to control
-single-file vs directory output behavior. Any code constructing <code class="docutils literal notranslate"><span class="pre">FileSinkConfig</span></code> via struct
-literals must initialize this field.</p>
-<p>The <code class="docutils literal notranslate"><span class="pre">FileOutputMode</span></code> enum has three variants:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">Automatic</span></code> (default): Infer output mode from the URL (extension/trailing <code class="docutils literal notranslate"><span class="pre">/</span></code> heuristic)</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">SingleFile</span></code>: Write to a single file at the exact output path</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">Directory</span></code>: Write to a directory with generated filenames</p></li>
-</ul>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">FileSinkConfig</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="c1">// ...</span>
-<span class="w">    </span><span class="n">file_extension</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;parquet&quot;</span><span class="p">.</span><span class="n">into</span><span class="p">(),</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_datasource</span><span class="p">::</span><span class="n">file_sink_config</span><span class="p">::</span><span class="n">FileOutputMode</span><span class="p">;</span>
-
-<span class="n">FileSinkConfig</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="c1">// ...</span>
-<span class="w">    </span><span class="n">file_extension</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;parquet&quot;</span><span class="p">.</span><span class="n">into</span><span class="p">(),</span>
-<span class="w">    </span><span class="n">file_output_mode</span><span class="p">:</span><span class="w"> </span><span class="nc">FileOutputMode</span><span class="p">::</span><span class="n">Automatic</span><span class="p">,</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-</section>
-<section id="simplifyinfo-trait-removed-simplifycontext-now-uses-builder-style-api">
-<h3><code class="docutils literal notranslate"><span class="pre">SimplifyInfo</span></code> trait removed, <code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> now uses builder-style API<a class="headerlink" href="#simplifyinfo-trait-removed-simplifycontext-now-uses-builder-style-api" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">SimplifyInfo</span></code> trait has been removed and replaced with the concrete <code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> struct. This simplifies the expression simplification API and removes the need for trait objects.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who implemented custom <code class="docutils literal notranslate"><span class="pre">SimplifyInfo</span></code> implementations</p></li>
-<li><p>Users who implemented <code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::simplify()</span></code> for custom scalar functions</p></li>
-<li><p>Users who directly use <code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> or <code class="docutils literal notranslate"><span class="pre">ExprSimplifier</span></code></p></li>
-</ul>
-<p><strong>Breaking changes:</strong></p>
-<ol class="arabic simple">
-<li><p>The <code class="docutils literal notranslate"><span class="pre">SimplifyInfo</span></code> trait has been removed entirely</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> no longer takes <code class="docutils literal notranslate"><span class="pre">&amp;ExecutionProps</span></code> - it now uses a builder-style API with direct fields</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::simplify()</span></code> now takes <code class="docutils literal notranslate"><span class="pre">&amp;SimplifyContext</span></code> instead of <code class="docutils literal notranslate"><span class="pre">&amp;dyn</span> <span class="pre">SimplifyInfo</span></code></p></li>
-<li><p>Time-dependent function simplification (e.g., <code class="docutils literal notranslate"><span class="pre">now()</span></code>) is now optional - if <code class="docutils literal notranslate"><span class="pre">query_execution_start_time</span></code> is <code class="docutils literal notranslate"><span class="pre">None</span></code>, these functions won’t be simplified</p></li>
-</ol>
-<p><strong>Migration guide:</strong></p>
-<p>If you implemented a custom <code class="docutils literal notranslate"><span class="pre">SimplifyInfo</span></code>:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">SimplifyInfo</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">MySimplifyInfo</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">is_boolean_type</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">expr</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">Expr</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb"> [...]
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">nullable</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">expr</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">Expr</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result< [...]
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">execution_props</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ExecutionProps</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="o">..</span><span class="p">.</span><span cla [...]
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">get_data_type</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">expr</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">Expr</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Re [...]
-<span class="p">}</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<p>Use <code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> directly with the builder-style API:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SimplifyContext</span><span class="p">::</span><span class="n">default</span><span class="p">()</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_schema</span><span class="p">(</span><span class="n">schema</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_config_options</span><span class="p">(</span><span class="n">config_options</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_query_execution_start_time</span><span class="p">(</span><span class="nb">Some</span><span class="p">(</span><span class="n">Utc</span><span class="p">::</span><span class="n">now</span><span class="p">()));</span><span class="w"> </span><span class="c1">// or use .with_current_time()</span>
-</pre></div>
-</div>
-<p>If you implemented <code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::simplify()</span></code>:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">fn</span><span class="w"> </span><span class="nf">simplify</span><span class="p">(</span>
-<span class="w">    </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">    </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nb">Vec</span><span class="o">&lt;</span><span class="n">Expr</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">    </span><span class="n">info</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">dyn</span><span class="w"> </span><span class="n">SimplifyInfo</span><span class="p">,</span>
-<span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">ExprSimplifyResult</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">now_ts</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">.</span><span class="n">execution_props</span><span class="p">().</span><span class="n">query_execution_start_time</span><span class="p">;</span>
-<span class="w">    </span><span class="c1">// ...</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">fn</span><span class="w"> </span><span class="nf">simplify</span><span class="p">(</span>
-<span class="w">    </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">    </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nb">Vec</span><span class="o">&lt;</span><span class="n">Expr</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">    </span><span class="n">info</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">SimplifyContext</span><span class="p">,</span>
-<span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">ExprSimplifyResult</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="c1">// query_execution_start_time is now Option&lt;DateTime&lt;Utc&gt;&gt;</span>
-<span class="w">    </span><span class="c1">// Return Original if time is not set (simplification skipped)</span>
-<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">now_ts</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">.</span><span class="n">query_execution_start_time</span><span class="p">()</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="k">return</span><span class="w"> </span><span class="nb">Ok</span><span class="p">(</span><span class="n">ExprSimplifyResult</span><span class="p">::</span><span class="n">Original</span><span class="p">(</span><span class="n">args</span><span class="p">));</span>
-<span class="w">    </span><span class="p">};</span>
-<span class="w">    </span><span class="c1">// ...</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>If you created <code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> from <code class="docutils literal notranslate"><span class="pre">ExecutionProps</span></code>:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">props</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ExecutionProps</span><span class="p">::</span><span class="n">new</span><span class="p">();</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SimplifyContext</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="o">&amp;</span><span class="n">props</span><span class="p">).</span><span class="n">with_schema</span><span class="p">(</span><span class="n">schema</span><span class="p">);</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SimplifyContext</span><span class="p">::</span><span class="n">default</span><span class="p">()</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_schema</span><span class="p">(</span><span class="n">schema</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_config_options</span><span class="p">(</span><span class="n">config_options</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_current_time</span><span class="p">();</span><span class="w"> </span><span class="c1">// Sets query_execution_start_time to Utc::now()</span>
-</pre></div>
-</div>
-<p>See <a class="reference external" href="https://docs.rs/datafusion-expr/latest/datafusion_expr/simplify/struct.SimplifyContext.html"><code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> documentation</a> for more details.</p>
-</section>
-<section id="struct-casting-now-requires-field-name-overlap">
-<h3>Struct Casting Now Requires Field Name Overlap<a class="headerlink" href="#struct-casting-now-requires-field-name-overlap" title="Link to this heading">#</a></h3>
-<p>DataFusion’s struct casting mechanism previously allowed casting between structs with differing field names if the field counts matched. This “positional fallback” behavior could silently misalign fields and cause data corruption.</p>
-<p><strong>Breaking Change:</strong></p>
-<p>Starting with DataFusion 53.0.0, struct casts now require <strong>at least one overlapping field name</strong> between the source and target structs. Casts without field name overlap are rejected at plan time with a clear error message.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Applications that cast between structs with no overlapping field names</p></li>
-<li><p>Queries that rely on positional struct field mapping (e.g., casting <code class="docutils literal notranslate"><span class="pre">struct(x,</span> <span class="pre">y)</span></code> to <code class="docutils literal notranslate"><span class="pre">struct(a,</span> <span class="pre">b)</span></code> based solely on position)</p></li>
-<li><p>Code that constructs or transforms struct columns programmatically</p></li>
-</ul>
-<p><strong>Migration guide:</strong></p>
-<p>If you encounter an error like:</p>
-<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Cannot cast struct with 2 fields to 2 fields because there is no field name overlap
-</pre></div>
-</div>
-<p>You must explicitly rename or map fields to ensure at least one field name matches. Here are common patterns:</p>
-<p><strong>Example 1: Source and target field names already match (Name-based casting)</strong></p>
-<p><strong>Success case (field names align):</strong></p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="c1">-- source_col has schema: STRUCT&lt;x INT, y INT&gt;</span>
-<span class="c1">-- Casting to the same field names succeeds (no-op or type validation only)</span>
-<span class="k">SELECT</span><span class="w"> </span><span class="k">CAST</span><span class="p">(</span><span class="n">source_col</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">STRUCT</span><span class="o">&lt;</span><span class="n">x</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="nb">INT</span><span class="o">&gt;</span>< [...]
-</pre></div>
-</div>
-<p><strong>Example 2: Source and target field names differ (Migration scenario)</strong></p>
-<p><strong>What fails now (no field name overlap):</strong></p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="c1">-- source_col has schema: STRUCT&lt;a INT, b INT&gt;</span>
-<span class="c1">-- This FAILS because there is no field name overlap:</span>
-<span class="c1">-- ❌ SELECT CAST(source_col AS STRUCT&lt;x INT, y INT&gt;) FROM table1;</span>
-<span class="c1">-- Error: Cannot cast struct with 2 fields to 2 fields because there is no field name overlap</span>
-</pre></div>
-</div>
-<p><strong>Migration options (must align names):</strong></p>
-<p><strong>Option A: Use struct constructor for explicit field mapping</strong></p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="c1">-- source_col has schema: STRUCT&lt;a INT, b INT&gt;</span>
-<span class="c1">-- Use STRUCT_CONSTRUCT with explicit field names</span>
-<span class="k">SELECT</span><span class="w"> </span><span class="n">STRUCT_CONSTRUCT</span><span class="p">(</span>
-<span class="w">    </span><span class="s1">&#39;x&#39;</span><span class="p">,</span><span class="w"> </span><span class="n">source_col</span><span class="p">.</span><span class="n">a</span><span class="p">,</span>
-<span class="w">    </span><span class="s1">&#39;y&#39;</span><span class="p">,</span><span class="w"> </span><span class="n">source_col</span><span class="p">.</span><span class="n">b</span>
-<span class="p">)</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">renamed_struct</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">table1</span><span class="p">;</span>
-</pre></div>
-</div>
-<p><strong>Option B: Rename in the cast target to match source names</strong></p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="c1">-- source_col has schema: STRUCT&lt;a INT, b INT&gt;</span>
-<span class="c1">-- Cast to target with matching field names</span>
-<span class="k">SELECT</span><span class="w"> </span><span class="k">CAST</span><span class="p">(</span><span class="n">source_col</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">STRUCT</span><span class="o">&lt;</span><span class="n">a</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="nb">INT</span><span class="o">&gt;</span>< [...]
-</pre></div>
-</div>
-<p><strong>Example 3: Using struct constructors in Rust API</strong></p>
-<p>If you need to map fields programmatically, build the target struct explicitly:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="c1">// Build the target struct with explicit field names</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">target_struct_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">Struct</span><span class="p">(</span><span class="fm">vec!</span><span class="p">[</span>
-<span class="w">    </span><span class="n">FieldRef</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="s">&quot;x&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">Int32</span><span class="p">),</span>
-<span class="w">    </span><span class="n">FieldRef</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="s">&quot;y&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">Utf8</span><span class="p">),</span>
-<span class="p">]);</span>
-
-<span class="c1">// Use struct constructors rather than casting for field mapping</span>
-<span class="c1">// This makes the field mapping explicit and unambiguous</span>
-<span class="c1">// Use struct builders or row constructors that preserve your mapping logic</span>
-</pre></div>
-</div>
-<p><strong>Why this change:</strong></p>
-<ol class="arabic simple">
-<li><p><strong>Safety:</strong> Field names are now the primary contract for struct compatibility</p></li>
-<li><p><strong>Explicitness:</strong> Prevents silent data misalignment caused by positional assumptions</p></li>
-<li><p><strong>Consistency:</strong> Matches DuckDB’s behavior and aligns with other SQL engines that enforce name-based matching</p></li>
-<li><p><strong>Debuggability:</strong> Errors now appear at plan time rather than as silent data corruption</p></li>
-</ol>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/issues/19841">Issue #19841</a> and <a class="reference external" href="https://github.com/apache/datafusion/pull/19955">PR #19955</a> for more details.</p>
-</section>
-<section id="filterexec-builder-methods-deprecated">
-<h3><code class="docutils literal notranslate"><span class="pre">FilterExec</span></code> builder methods deprecated<a class="headerlink" href="#filterexec-builder-methods-deprecated" title="Link to this heading">#</a></h3>
-<p>The following methods on <code class="docutils literal notranslate"><span class="pre">FilterExec</span></code> have been deprecated in favor of using <code class="docutils literal notranslate"><span class="pre">FilterExecBuilder</span></code>:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">with_projection()</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">with_batch_size()</span></code></p></li>
-</ul>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who create <code class="docutils literal notranslate"><span class="pre">FilterExec</span></code> instances and use these methods to configure them</p></li>
-</ul>
-<p><strong>Migration guide:</strong></p>
-<p>Use <code class="docutils literal notranslate"><span class="pre">FilterExecBuilder</span></code> instead of chaining method calls on <code class="docutils literal notranslate"><span class="pre">FilterExec</span></code>:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FilterExec</span><span class="p">::</span><span class="n">try_new</span><span class="p">(</span><span class="n">predicate</span><span class="p">,</span><span class="w"> </span><span class="n">input</span><span class="p">)</span><span class="o" [...]
-<span class="w">    </span><span class="p">.</span><span class="n">with_projection</span><span class="p">(</span><span class="nb">Some</span><span class="p">(</span><span class="fm">vec!</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">]))</span><span class="o">?</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_batch_size</span><span class="p">(</span><span class="mi">8192</span><span class="p">)</span><span class="o">?</span><span class="p">;</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FilterExecBuilder</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">predicate</span><span class="p">,</span><span class="w"> </span><span class="n">input</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_projection</span><span class="p">(</span><span class="nb">Some</span><span class="p">(</span><span class="fm">vec!</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">]))</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_batch_size</span><span class="p">(</span><span class="mi">8192</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">build</span><span class="p">()</span><span class="o">?</span><span class="p">;</span>
-</pre></div>
-</div>
-<p>The builder pattern is more efficient as it computes properties once during <code class="docutils literal notranslate"><span class="pre">build()</span></code> rather than recomputing them for each method call.</p>
-<p>Note: <code class="docutils literal notranslate"><span class="pre">with_default_selectivity()</span></code> is not deprecated as it simply updates a field value and does not require the overhead of the builder pattern.</p>
-</section>
-<section id="protobuf-conversion-trait-added">
-<h3>Protobuf conversion trait added<a class="headerlink" href="#protobuf-conversion-trait-added" title="Link to this heading">#</a></h3>
-<p>A new trait, <code class="docutils literal notranslate"><span class="pre">PhysicalProtoConverterExtension</span></code>, has been added to the <code class="docutils literal notranslate"><span class="pre">datafusion-proto</span></code>
-crate. This is used for controlling the process of conversion of physical plans and
-expressions to and from their protobuf equivalents. The methods for conversion now
-require an additional parameter.</p>
-<p>The primary APIs for interacting with this crate have not been modified, so most users
-should not need to make any changes. If you do require this trait, you can use the
-<code class="docutils literal notranslate"><span class="pre">DefaultPhysicalProtoConverter</span></code> implementation.</p>
-<p>For example, to convert a sort expression protobuf node you can make the following
-updates:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">sort_expr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_physical_sort_expr</span><span class="p">(</span>
-<span class="w">    </span><span class="n">sort_proto</span><span class="p">,</span>
-<span class="w">    </span><span class="n">ctx</span><span class="p">,</span>
-<span class="w">    </span><span class="n">input_schema</span><span class="p">,</span>
-<span class="w">    </span><span class="n">codec</span><span class="p">,</span>
-<span class="p">);</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">converter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DefaultPhysicalProtoConverter</span><span class="w"> </span><span class="p">{};</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">sort_expr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_physical_sort_expr</span><span class="p">(</span>
-<span class="w">    </span><span class="n">sort_proto</span><span class="p">,</span>
-<span class="w">    </span><span class="n">ctx</span><span class="p">,</span>
-<span class="w">    </span><span class="n">input_schema</span><span class="p">,</span>
-<span class="w">    </span><span class="n">codec</span><span class="p">,</span>
-<span class="w">    </span><span class="o">&amp;</span><span class="n">converter</span>
-<span class="p">);</span>
-</pre></div>
-</div>
-<p>Similarly to convert from a physical sort expression into a protobuf node:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">sort_proto</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">serialize_physical_sort_expr</span><span class="p">(</span>
-<span class="w">    </span><span class="n">sort_expr</span><span class="p">,</span>
-<span class="w">    </span><span class="n">codec</span><span class="p">,</span>
-<span class="p">);</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">converter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DefaultPhysicalProtoConverter</span><span class="w"> </span><span class="p">{};</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">sort_proto</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">serialize_physical_sort_expr</span><span class="p">(</span>
-<span class="w">    </span><span class="n">sort_expr</span><span class="p">,</span>
-<span class="w">    </span><span class="n">codec</span><span class="p">,</span>
-<span class="w">    </span><span class="o">&amp;</span><span class="n">converter</span><span class="p">,</span>
-<span class="p">);</span>
-</pre></div>
-</div>
-</section>
-<section id="generate-series-and-range-table-functions-changed">
-<h3><code class="docutils literal notranslate"><span class="pre">generate_series</span></code> and <code class="docutils literal notranslate"><span class="pre">range</span></code> table functions changed<a class="headerlink" href="#generate-series-and-range-table-functions-changed" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">generate_series</span></code> and <code class="docutils literal notranslate"><span class="pre">range</span></code> table functions now return an empty set when the interval is invalid, instead of an error.
-This behavior is consistent with systems like PostgreSQL.</p>
-<p>Before:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">generate_series</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">1</span><span class="p">);</span>
-<span class="n">Error</span><span class="w"> </span><span class="n">during</span><span class="w"> </span><span class="n">planning</span><span class="p">:</span><span class="w"> </span><span class="k">Start</span><span class="w"> </span><span class="k">is</span><span class="w"> </span><span class="n">bigger</span><span class="w"> </span><span class="k">than</span><span class="w"> </span><span class="k">end</span><span class="p">,</span><span class="w"> </span><span class="n">but</span><sp [...]
-
-<span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">1</span><span class="p">);</span>
-<span class="n">Error</span><span class="w"> </span><span class="n">during</span><span class="w"> </span><span class="n">planning</span><span class="p">:</span><span class="w"> </span><span class="k">Start</span><span class="w"> </span><span class="k">is</span><span class="w"> </span><span class="n">bigger</span><span class="w"> </span><span class="k">than</span><span class="w"> </span><span class="k">end</span><span class="p">,</span><span class="w"> </span><span class="n">but</span><sp [...]
-</pre></div>
-</div>
-<p>Now:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">generate_series</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">1</span><span class="p">);</span>
-<span class="o">+</span><span class="c1">-------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">-------+</span>
-<span class="o">+</span><span class="c1">-------+</span>
-<span class="mi">0</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-
-<span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">from</span><span class="w"> </span><span class="n">range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">1</span><span class="p">);</span>
-<span class="o">+</span><span class="c1">-------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">-------+</span>
-<span class="o">+</span><span class="c1">-------+</span>
-<span class="mi">0</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-</pre></div>
-</div>
-</section>
-</section>
-<section id="datafusion-52-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">52.0.0</span></code><a class="headerlink" href="#datafusion-52-0-0" title="Link to this heading">#</a></h2>
-<section id="changes-to-dfschema-api">
-<h3>Changes to DFSchema API<a class="headerlink" href="#changes-to-dfschema-api" title="Link to this heading">#</a></h3>
-<p>To permit more efficient planning, several methods on <code class="docutils literal notranslate"><span class="pre">DFSchema</span></code> have been
-changed to return references to the underlying [<code class="docutils literal notranslate"><span class="pre">&amp;FieldRef</span></code>] rather than
-[<code class="docutils literal notranslate"><span class="pre">&amp;Field</span></code>]. This allows planners to more cheaply copy the references via
-<code class="docutils literal notranslate"><span class="pre">Arc::clone</span></code> rather than cloning the entire <code class="docutils literal notranslate"><span class="pre">Field</span></code> structure.</p>
-<p>You may need to change code to use <code class="docutils literal notranslate"><span class="pre">Arc::clone</span></code> instead of <code class="docutils literal notranslate"><span class="pre">.as_ref().clone()</span></code>
-directly on the <code class="docutils literal notranslate"><span class="pre">Field</span></code>. For example:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- let field = df_schema.field(&quot;my_column&quot;).as_ref().clone();</span>
-<span class="gi">+ let field = Arc::clone(df_schema.field(&quot;my_column&quot;));</span>
-</pre></div>
-</div>
-</section>
-<section id="listingtableprovider-now-caches-list-commands">
-<h3>ListingTableProvider now caches <code class="docutils literal notranslate"><span class="pre">LIST</span></code> commands<a class="headerlink" href="#listingtableprovider-now-caches-list-commands" title="Link to this heading">#</a></h3>
-<p>In prior versions, <code class="docutils literal notranslate"><span class="pre">ListingTableProvider</span></code> would issue <code class="docutils literal notranslate"><span class="pre">LIST</span></code> commands to
-the underlying object store each time it needed to list files for a query.
-To improve performance, <code class="docutils literal notranslate"><span class="pre">ListingTableProvider</span></code> now caches the results of
-<code class="docutils literal notranslate"><span class="pre">LIST</span></code> commands for the lifetime of the <code class="docutils literal notranslate"><span class="pre">ListingTableProvider</span></code> instance or
-until a cache entry expires.</p>
-<p>Note that by default the cache has no expiration time, so if files are added or removed
-from the underlying object store, the <code class="docutils literal notranslate"><span class="pre">ListingTableProvider</span></code> will not see
-those changes until the <code class="docutils literal notranslate"><span class="pre">ListingTableProvider</span></code> instance is dropped and recreated.</p>
-<p>You can configure the maximum cache size and cache entry expiration time via configuration options:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">datafusion.runtime.list_files_cache_limit</span></code> - Limits the size of the cache in bytes</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">datafusion.runtime.list_files_cache_ttl</span></code> - Limits the TTL (time-to-live) of an entry in seconds</p></li>
-</ul>
-<p>Detailed configuration information can be found in the <a class="reference external" href="https://datafusion.apache.org/user-guide/configs.html#runtime-configuration-settings">DataFusion Runtime
-Configuration</a> user’s guide.</p>
-<p>Caching can be disabled by setting the limit to 0:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">datafusion</span><span class="p">.</span><span class="n">runtime</span><span class="p">.</span><span class="n">list_files_cache_limit</span><span class="w"> </span><span class="k">TO</span><span class="w"> </span><span class="ss">&quot;0K&quot;</span><span class="p">;</span>
-</pre></div>
-</div>
-<p>Note that the internal API has changed to use a trait <code class="docutils literal notranslate"><span class="pre">ListFilesCache</span></code> instead of a type alias.</p>
-</section>
-<section id="newlines-in-values-moved-from-filescanconfig-to-csvoptions">
-<h3><code class="docutils literal notranslate"><span class="pre">newlines_in_values</span></code> moved from <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> to <code class="docutils literal notranslate"><span class="pre">CsvOptions</span></code><a class="headerlink" href="#newlines-in-values-moved-from-filescanconfig-to-csvoptions" title="Link to this heading">#</a></h3>
-<p>The CSV-specific <code class="docutils literal notranslate"><span class="pre">newlines_in_values</span></code> configuration option has been moved from <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> to <code class="docutils literal notranslate"><span class="pre">CsvOptions</span></code>, as it only applies to CSV file parsing.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who set <code class="docutils literal notranslate"><span class="pre">newlines_in_values</span></code> via <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder::with_newlines_in_values()</span></code></p></li>
-</ul>
-<p><strong>Migration guide:</strong></p>
-<p>Set <code class="docutils literal notranslate"><span class="pre">newlines_in_values</span></code> in <code class="docutils literal notranslate"><span class="pre">CsvOptions</span></code> instead of on <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code>:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">CsvSource</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">file_schema</span><span class="p">. [...]
-<span class="kd">let</span><span class="w"> </span><span class="n">config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfigBuilder</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">object_store_url</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_newlines_in_values</span><span class="p">(</span><span class="kc">true</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">build</span><span class="p">();</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CsvOptions</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">newlines_in_values</span><span class="p">:</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="kc">true</span><span class="p">),</span>
-<span class="w">    </span><span class="o">..</span><span class="nb">Default</span><span class="p">::</span><span class="n">default</span><span class="p">()</span>
-<span class="p">};</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">CsvSource</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">file_schema</span><span class="p">.</span><span class="n">clone</span><span class="p">())</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_csv_options</span><span class="p">(</span><span class="n">options</span><span class="p">));</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfigBuilder</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">object_store_url</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">build</span><span class="p">();</span>
-</pre></div>
-</div>
-</section>
-<section id="removal-of-pyarrow-feature">
-<h3>Removal of <code class="docutils literal notranslate"><span class="pre">pyarrow</span></code> feature<a class="headerlink" href="#removal-of-pyarrow-feature" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">pyarrow</span></code> feature flag has been removed. This feature has been migrated to
-the <code class="docutils literal notranslate"><span class="pre">datafusion-python</span></code> repository since version <code class="docutils literal notranslate"><span class="pre">44.0.0</span></code>.</p>
-</section>
-<section id="refactoring-of-filesource-constructors-and-filescanconfigbuilder-to-accept-schemas-upfront">
-<h3>Refactoring of <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> constructors and <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code> to accept schemas upfront<a class="headerlink" href="#refactoring-of-filesource-constructors-and-filescanconfigbuilder-to-accept-schemas-upfront" title="Link to this heading">#</a></h3>
-<p>The way schemas are passed to file sources and scan configurations has been significantly refactored. File sources now require the schema (including partition columns) to be provided at construction time, and <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code> no longer takes a separate schema parameter.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who create <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> or file sources (<code class="docutils literal notranslate"><span class="pre">ParquetSource</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvSource</span></code>, <code class="docutils literal notranslate"><span class="pre">JsonSource</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroSource</span></code>) directly</p></li>
-<li><p>Users who implement custom <code class="docutils literal notranslate"><span class="pre">FileFormat</span></code> implementations</p></li>
-</ul>
-<p><strong>Key changes:</strong></p>
-<ol class="arabic">
-<li><p><strong>FileSource constructors now require TableSchema</strong>: All built-in file sources now take the schema in their constructor:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- let source = ParquetSource::default();</span>
-<span class="gi">+ let source = ParquetSource::new(table_schema);</span>
-</pre></div>
-</div>
-</li>
-<li><p><strong>FileScanConfigBuilder no longer takes schema as a parameter</strong>: The schema is now passed via the FileSource:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- FileScanConfigBuilder::new(url, schema, source)</span>
-<span class="gi">+ FileScanConfigBuilder::new(url, source)</span>
-</pre></div>
-</div>
-</li>
-<li><p><strong>Partition columns are now part of TableSchema</strong>: The <code class="docutils literal notranslate"><span class="pre">with_table_partition_cols()</span></code> method has been removed from <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code>. Partition columns are now passed as part of the <code class="docutils literal notranslate"><span class="pre">TableSchema</span></code> to the FileSource constructor:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gi">+ let table_schema = TableSchema::new(</span>
-<span class="gi">+     file_schema,</span>
-<span class="gi">+     vec![Arc::new(Field::new(&quot;date&quot;, DataType::Utf8, false))],</span>
-<span class="gi">+ );</span>
-<span class="gi">+ let source = ParquetSource::new(table_schema);</span>
-<span class="w"> </span> let config = FileScanConfigBuilder::new(url, source)
-<span class="gd">-     .with_table_partition_cols(vec![Field::new(&quot;date&quot;, DataType::Utf8, false)])</span>
-<span class="w"> </span>     .with_file(partitioned_file)
-<span class="w"> </span>     .build();
-</pre></div>
-</div>
-</li>
-<li><p><strong>FileFormat::file_source() now takes TableSchema parameter</strong>: Custom <code class="docutils literal notranslate"><span class="pre">FileFormat</span></code> implementations must be updated:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span>impl FileFormat for MyFileFormat {
-<span class="gd">-   fn file_source(&amp;self) -&gt; Arc&lt;dyn FileSource&gt; {</span>
-<span class="gi">+   fn file_source(&amp;self, table_schema: TableSchema) -&gt; Arc&lt;dyn FileSource&gt; {</span>
-<span class="gd">-       Arc::new(MyFileSource::default())</span>
-<span class="gi">+       Arc::new(MyFileSource::new(table_schema))</span>
-<span class="w"> </span>   }
-}
-</pre></div>
-</div>
-</li>
-</ol>
-<p><strong>Migration examples:</strong></p>
-<p>For Parquet files:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- let source = Arc::new(ParquetSource::default());</span>
-<span class="gd">- let config = FileScanConfigBuilder::new(url, schema, source)</span>
-<span class="gi">+ let table_schema = TableSchema::new(schema, vec![]);</span>
-<span class="gi">+ let source = Arc::new(ParquetSource::new(table_schema));</span>
-<span class="gi">+ let config = FileScanConfigBuilder::new(url, source)</span>
-<span class="w"> </span>     .with_file(partitioned_file)
-<span class="w"> </span>     .build();
-</pre></div>
-</div>
-<p>For CSV files with partition columns:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- let source = Arc::new(CsvSource::new(true, b&#39;,&#39;, b&#39;&quot;&#39;));</span>
-<span class="gd">- let config = FileScanConfigBuilder::new(url, file_schema, source)</span>
-<span class="gd">-     .with_table_partition_cols(vec![Field::new(&quot;year&quot;, DataType::Int32, false)])</span>
-<span class="gi">+ let options = CsvOptions {</span>
-<span class="gi">+     has_header: Some(true),</span>
-<span class="gi">+     delimiter: b&#39;,&#39;,</span>
-<span class="gi">+     quote: b&#39;&quot;&#39;,</span>
-<span class="gi">+     ..Default::default()</span>
-<span class="gi">+ };</span>
-<span class="gi">+ let table_schema = TableSchema::new(</span>
-<span class="gi">+     file_schema,</span>
-<span class="gi">+     vec![Arc::new(Field::new(&quot;year&quot;, DataType::Int32, false))],</span>
-<span class="gi">+ );</span>
-<span class="gi">+ let source = Arc::new(CsvSource::new(table_schema).with_csv_options(options));</span>
-<span class="gi">+ let config = FileScanConfigBuilder::new(url, source)</span>
-<span class="w"> </span>     .build();
-</pre></div>
-</div>
-</section>
-<section id="adaptive-filter-representation-in-parquet-filter-pushdown">
-<h3>Adaptive filter representation in Parquet filter pushdown<a class="headerlink" href="#adaptive-filter-representation-in-parquet-filter-pushdown" title="Link to this heading">#</a></h3>
-<p>As of Arrow 57.1.0, DataFusion uses a new adaptive filter strategy when
-evaluating pushed down filters for Parquet files. This new strategy improves
-performance for certain types of queries where the results of filtering are
-more efficiently represented with a bitmask rather than a selection.
-See <a class="reference external" href="https://github.com/apache/arrow-rs/issues/5523">arrow-rs #5523</a> for more details.</p>
-<p>This change only applies to the built-in Parquet data source with filter-pushdown enabled (
-which is <a class="reference external" href="https://github.com/apache/datafusion/issues/3463">not yet the default behavior</a>).</p>
-<p>You can disable the new behavior by setting the
-<code class="docutils literal notranslate"><span class="pre">datafusion.execution.parquet.force_filter_selections</span></code> <a class="reference external" href="https://datafusion.apache.org/user-guide/configs.html">configuration setting</a> to true.</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">set</span><span class="w"> </span><span class="n">datafusion</span><span class="p">.</span><span class="n">execution</span><span class="p">.</span><span class="n">parquet</span><span class="p">.</span><span class="n">force_filter_selections</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">true</span [...]
-</pre></div>
-</div>
-</section>
-<section id="statistics-handling-moved-from-filesource-to-filescanconfig">
-<h3>Statistics handling moved from <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> to <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code><a class="headerlink" href="#statistics-handling-moved-from-filesource-to-filescanconfig" title="Link to this heading">#</a></h3>
-<p>Statistics are now managed directly by <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> instead of being delegated to <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementations. This simplifies the <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> trait and provides more consistent statistics handling across all file formats.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who have implemented custom <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementations</p></li>
-</ul>
-<p><strong>Breaking changes:</strong></p>
-<p>Two methods have been removed from the <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> trait:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">with_statistics(&amp;self,</span> <span class="pre">statistics:</span> <span class="pre">Statistics)</span> <span class="pre">-&gt;</span> <span class="pre">Arc&lt;dyn</span> <span class="pre">FileSource&gt;</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">statistics(&amp;self)</span> <span class="pre">-&gt;</span> <span class="pre">Result&lt;Statistics&gt;</span></code></p></li>
-</ul>
-<p><strong>Migration guide:</strong></p>
-<p>If you have a custom <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementation, you need to:</p>
-<ol class="arabic simple">
-<li><p>Remove the <code class="docutils literal notranslate"><span class="pre">with_statistics</span></code> method implementation</p></li>
-<li><p>Remove the <code class="docutils literal notranslate"><span class="pre">statistics</span></code> method implementation</p></li>
-<li><p>Remove any internal state that was storing statistics</p></li>
-</ol>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="cp">#[derive(Clone)]</span>
-<span class="k">struct</span><span class="w"> </span><span class="nc">MyCustomSource</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">table_schema</span><span class="p">:</span><span class="w"> </span><span class="nc">TableSchema</span><span class="p">,</span>
-<span class="w">    </span><span class="n">projected_statistics</span><span class="p">:</span><span class="w"> </span><span class="nb">Option</span><span class="o">&lt;</span><span class="n">Statistics</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">    </span><span class="c1">// other fields...</span>
-<span class="p">}</span>
-
-<span class="k">impl</span><span class="w"> </span><span class="n">FileSource</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">MyCustomSource</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">with_statistics</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">statistics</span><span class="p">:</span><span class="w"> </span><span class="nc">Statistics</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nc">Arc</span><span c [...]
-<span class="w">        </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="bp">Self</span><span class="w"> </span><span class="p">{</span>
-<span class="w">            </span><span class="n">table_schema</span><span class="p">:</span><span class="w"> </span><span class="nc">self</span><span class="p">.</span><span class="n">table_schema</span><span class="p">.</span><span class="n">clone</span><span class="p">(),</span>
-<span class="w">            </span><span class="n">projected_statistics</span><span class="p">:</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">statistics</span><span class="p">),</span>
-<span class="w">            </span><span class="c1">// other fields...</span>
-<span class="w">        </span><span class="p">})</span>
-<span class="w">    </span><span class="p">}</span>
-
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">statistics</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">Statistics</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="nb">Ok</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">projected_statistics</span><span class="p">.</span><span class="n">clone</span><span class="p">().</span><span class="n">unwrap_or_else</span><span class="p">(</span><span class="o">||</span>
-<span class="w">            </span><span class="n">Statistics</span><span class="p">::</span><span class="n">new_unknown</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">table_schema</span><span class="p">.</span><span class="n">file_schema</span><span class="p">())</span>
-<span class="w">        </span><span class="p">))</span>
-<span class="w">    </span><span class="p">}</span>
-
-<span class="w">    </span><span class="c1">// other methods...</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="cp">#[derive(Clone)]</span>
-<span class="k">struct</span><span class="w"> </span><span class="nc">MyCustomSource</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">table_schema</span><span class="p">:</span><span class="w"> </span><span class="nc">TableSchema</span><span class="p">,</span>
-<span class="w">    </span><span class="c1">// projected_statistics field removed</span>
-<span class="w">    </span><span class="c1">// other fields...</span>
-<span class="p">}</span>
-
-<span class="k">impl</span><span class="w"> </span><span class="n">FileSource</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">MyCustomSource</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="c1">// with_statistics method removed</span>
-<span class="w">    </span><span class="c1">// statistics method removed</span>
-
-<span class="w">    </span><span class="c1">// other methods...</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p><strong>Accessing statistics:</strong></p>
-<p>Statistics are now accessed through <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> instead of <code class="docutils literal notranslate"><span class="pre">FileSource</span></code>:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- let stats = config.file_source.statistics()?;</span>
-<span class="gi">+ let stats = config.statistics();</span>
-</pre></div>
-</div>
-<p>Note that <code class="docutils literal notranslate"><span class="pre">FileScanConfig::statistics()</span></code> automatically marks statistics as inexact when filters are present, ensuring correctness when filters are pushed down.</p>
-</section>
-<section id="partition-column-handling-moved-out-of-physicalexpradapter">
-<h3>Partition column handling moved out of <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapter</span></code><a class="headerlink" href="#partition-column-handling-moved-out-of-physicalexpradapter" title="Link to this heading">#</a></h3>
-<p>Partition column replacement is now a separate preprocessing step performed before expression rewriting via <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapter</span></code>. This change provides better separation of concerns and makes the adapter more focused on schema differences rather than partition value substitution.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who have custom implementations of <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code> that handle partition columns</p></li>
-<li><p>Users who directly use the <code class="docutils literal notranslate"><span class="pre">FilePruner</span></code> API</p></li>
-</ul>
-<p><strong>Breaking changes:</strong></p>
-<ol class="arabic simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">FilePruner::try_new()</span></code> signature changed: the <code class="docutils literal notranslate"><span class="pre">partition_fields</span></code> parameter has been removed since partition column handling is now done separately</p></li>
-<li><p>Partition column replacement must now be done via <code class="docutils literal notranslate"><span class="pre">replace_columns_with_literals()</span></code> before expressions are passed to the adapter</p></li>
-</ol>
-<p><strong>Migration guide:</strong></p>
-<p>If you have code that creates a <code class="docutils literal notranslate"><span class="pre">FilePruner</span></code> with partition fields:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_pruning</span><span class="p">::</span><span class="n">FilePruner</span><span class="p">;</span>
-
-<span class="kd">let</span><span class="w"> </span><span class="n">pruner</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FilePruner</span><span class="p">::</span><span class="n">try_new</span><span class="p">(</span>
-<span class="w">    </span><span class="n">predicate</span><span class="p">,</span>
-<span class="w">    </span><span class="n">file_schema</span><span class="p">,</span>
-<span class="w">    </span><span class="n">partition_fields</span><span class="p">,</span><span class="w">  </span><span class="c1">// This parameter is removed</span>
-<span class="w">    </span><span class="n">file_stats</span><span class="p">,</span>
-<span class="p">)</span><span class="o">?</span><span class="p">;</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_pruning</span><span class="p">::</span><span class="n">FilePruner</span><span class="p">;</span>
-
-<span class="c1">// Partition fields are no longer needed</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">pruner</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FilePruner</span><span class="p">::</span><span class="n">try_new</span><span class="p">(</span>
-<span class="w">    </span><span class="n">predicate</span><span class="p">,</span>
-<span class="w">    </span><span class="n">file_schema</span><span class="p">,</span>
-<span class="w">    </span><span class="n">file_stats</span><span class="p">,</span>
-<span class="p">)</span><span class="o">?</span><span class="p">;</span>
-</pre></div>
-</div>
-<p>If you have custom code that relies on <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapter</span></code> to handle partition columns, you must now call <code class="docutils literal notranslate"><span class="pre">replace_columns_with_literals()</span></code> separately:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="c1">// Adapter handled partition column replacement internally</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">adapted_expr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">adapter</span><span class="p">.</span><span class="n">rewrite</span><span class="p">(</span><span class="n">expr</span><span class="p">)</span><span class="o">?</span><span class="p">;</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_physical_expr_adapter</span><span class="p">::</span><span class="n">replace_columns_with_literals</span><span class="p">;</span>
-
-<span class="c1">// Replace partition columns first</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">expr_with_literals</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">replace_columns_with_literals</span><span class="p">(</span><span class="n">expr</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">partition_values</span><span class="p">)</span><span class="o">?</span><span class="p">;</span>
-<span class="c1">// Then apply the adapter</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">adapted_expr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">adapter</span><span class="p">.</span><span class="n">rewrite</span><span class="p">(</span><span class="n">expr_with_literals</span><span class="p">)</span><span class="o">?</span><span class="p">;</span>
-</pre></div>
-</div>
-</section>
-<section id="build-row-filter-signature-simplified">
-<h3><code class="docutils literal notranslate"><span class="pre">build_row_filter</span></code> signature simplified<a class="headerlink" href="#build-row-filter-signature-simplified" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">build_row_filter</span></code> function in <code class="docutils literal notranslate"><span class="pre">datafusion-datasource-parquet</span></code> has been simplified to take a single schema parameter instead of two.
-The expectation is now that the filter has been adapted to the physical file schema (the arrow representation of the parquet file’s schema) before being passed to this function
-using a <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapter</span></code> for example.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who call <code class="docutils literal notranslate"><span class="pre">build_row_filter</span></code> directly</p></li>
-</ul>
-<p><strong>Breaking changes:</strong></p>
-<p>The function signature changed from:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">pub</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">build_row_filter</span><span class="p">(</span>
-<span class="w">    </span><span class="n">expr</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">PhysicalExpr</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">    </span><span class="n">physical_file_schema</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">SchemaRef</span><span class="p">,</span>
-<span class="w">    </span><span class="n">predicate_file_schema</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">SchemaRef</span><span class="p">,</span><span class="w">  </span><span class="c1">// removed</span>
-<span class="w">    </span><span class="n">metadata</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ParquetMetaData</span><span class="p">,</span>
-<span class="w">    </span><span class="n">reorder_predicates</span><span class="p">:</span><span class="w"> </span><span class="kt">bool</span><span class="p">,</span>
-<span class="w">    </span><span class="n">file_metrics</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ParquetFileMetrics</span><span class="p">,</span>
-<span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="nb">Option</span><span class="o">&lt;</span><span class="n">RowFilter</span><span class="o">&gt;&gt;</span>
-</pre></div>
-</div>
-<p>To:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">pub</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">build_row_filter</span><span class="p">(</span>
-<span class="w">    </span><span class="n">expr</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">PhysicalExpr</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">    </span><span class="n">file_schema</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">SchemaRef</span><span class="p">,</span>
-<span class="w">    </span><span class="n">metadata</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ParquetMetaData</span><span class="p">,</span>
-<span class="w">    </span><span class="n">reorder_predicates</span><span class="p">:</span><span class="w"> </span><span class="kt">bool</span><span class="p">,</span>
-<span class="w">    </span><span class="n">file_metrics</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ParquetFileMetrics</span><span class="p">,</span>
-<span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="nb">Option</span><span class="o">&lt;</span><span class="n">RowFilter</span><span class="o">&gt;&gt;</span>
-</pre></div>
-</div>
-<p><strong>Migration guide:</strong></p>
-<p>Remove the duplicate schema parameter from your call:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- build_row_filter(&amp;predicate, &amp;file_schema, &amp;file_schema, metadata, reorder, metrics)</span>
-<span class="gi">+ build_row_filter(&amp;predicate, &amp;file_schema, metadata, reorder, metrics)</span>
-</pre></div>
-</div>
-</section>
-<section id="planner-now-requires-explicit-opt-in-for-within-group-syntax">
-<h3>Planner now requires explicit opt-in for WITHIN GROUP syntax<a class="headerlink" href="#planner-now-requires-explicit-opt-in-for-within-group-syntax" title="Link to this heading">#</a></h3>
-<p>The SQL planner now enforces the aggregate UDF contract more strictly: the
-<code class="docutils literal notranslate"><span class="pre">WITHIN</span> <span class="pre">GROUP</span> <span class="pre">(ORDER</span> <span class="pre">BY</span> <span class="pre">...)</span></code> syntax is accepted only if the aggregate UDAF
-explicitly advertises support by returning <code class="docutils literal notranslate"><span class="pre">true</span></code> from
-<code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::supports_within_group_clause()</span></code>.</p>
-<p>Previously the planner forwarded a <code class="docutils literal notranslate"><span class="pre">WITHIN</span> <span class="pre">GROUP</span></code> clause to order-sensitive
-aggregates even when they did not implement ordered-set semantics, which could
-cause queries such as <code class="docutils literal notranslate"><span class="pre">SUM(x)</span> <span class="pre">WITHIN</span> <span class="pre">GROUP</span> <span class="pre">(ORDER</span> <span class="pre">BY</span> <span class="pre">x)</span></code> to plan successfully.
-This behavior was too permissive and has been changed to match PostgreSQL and
-the documented semantics.</p>
-<p>Migration: If your UDAF intentionally implements ordered-set semantics and
-wants to accept the <code class="docutils literal notranslate"><span class="pre">WITHIN</span> <span class="pre">GROUP</span></code> SQL syntax, update your implementation to
-return <code class="docutils literal notranslate"><span class="pre">true</span></code> from <code class="docutils literal notranslate"><span class="pre">supports_within_group_clause()</span></code> and handle the ordering
-semantics in your accumulator implementation. If your UDAF is merely
-order-sensitive (but not an ordered-set aggregate), do not advertise
-<code class="docutils literal notranslate"><span class="pre">supports_within_group_clause()</span></code> and clients should use alternative function
-signatures (for example, explicit ordering as a function argument) instead.</p>
-</section>
-<section id="aggregateudfimpl-supports-null-handling-clause-now-defaults-to-false">
-<h3><code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::supports_null_handling_clause</span></code> now defaults to <code class="docutils literal notranslate"><span class="pre">false</span></code><a class="headerlink" href="#aggregateudfimpl-supports-null-handling-clause-now-defaults-to-false" title="Link to this heading">#</a></h3>
-<p>This method specifies whether an aggregate function allows <code class="docutils literal notranslate"><span class="pre">IGNORE</span> <span class="pre">NULLS</span></code>/<code class="docutils literal notranslate"><span class="pre">RESPECT</span> <span class="pre">NULLS</span></code>
-during SQL parsing, with the implication it respects these configs during computation.</p>
-<p>Most DataFusion aggregate functions silently ignored this syntax in prior versions
-as they did not make use of it and it was permitted by default. We change this so
-only the few functions which do respect this clause (e.g. <code class="docutils literal notranslate"><span class="pre">array_agg</span></code>, <code class="docutils literal notranslate"><span class="pre">first_value</span></code>,
-<code class="docutils literal notranslate"><span class="pre">last_value</span></code>) need to implement it.</p>
-<p>Custom user defined aggregate functions will also error if this syntax is used,
-unless they explicitly declare support by overriding the method.</p>
-<p>For example, SQL parsing will now fail for queries such as this:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">median</span><span class="p">(</span><span class="n">c1</span><span class="p">)</span><span class="w"> </span><span class="k">IGNORE</span><span class="w"> </span><span class="n">NULLS</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="k">table</span>
-</pre></div>
-</div>
-<p>Instead of silently succeeding.</p>
-</section>
-<section id="api-change-for-cacheaccessor-trait">
-<h3>API change for <code class="docutils literal notranslate"><span class="pre">CacheAccessor</span></code> trait<a class="headerlink" href="#api-change-for-cacheaccessor-trait" title="Link to this heading">#</a></h3>
-<p>The remove API no longer requires a mutable instance</p>
-</section>
-<section id="ffi-crate-updates">
-<h3>FFI crate updates<a class="headerlink" href="#ffi-crate-updates" title="Link to this heading">#</a></h3>
-<p>Many of the structs in the <code class="docutils literal notranslate"><span class="pre">datafusion-ffi</span></code> crate have been updated to allow easier
-conversion to the underlying trait types they represent. This simplifies some code
-paths, but also provides an additional improvement in cases where library code goes
-through a round trip via the foreign function interface.</p>
-<p>To update your code, suppose you have a <code class="docutils literal notranslate"><span class="pre">FFI_SchemaProvider</span></code> called <code class="docutils literal notranslate"><span class="pre">ffi_provider</span></code>
-and you wish to use this as a <code class="docutils literal notranslate"><span class="pre">SchemaProvider</span></code>. In the old approach you would do
-something like:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_provider</span><span class="p">:</span><span class="w"> </span><span class="nc">ForeignSchemaProvider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ffi_provider</span><span class="p">.</span><span class="n">into</span><span class="p">();</span>
-<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">foreign_provider</span><span class="p">)</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="n">Arc</span><span class="o">&lt;</span><span class=" [...]
-</pre></div>
-</div>
-<p>This code should now be written as:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_provider</span><span class="p">:</span><span class="w"> </span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">SchemaProvider</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nb">Send</span><span class="o">&gt;</span><span [...]
-<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">foreign_provider</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="n">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">SchemaProvider</span><span class="o">&gt;</span><span class="p">;</span>
-</pre></div>
-</div>
-<p>For the case of user defined functions, the updates are similar but you
-may need to change the way you call the creation of the <code class="docutils literal notranslate"><span class="pre">ScalarUDF</span></code>.
-Aggregate and window functions follow the same pattern.</p>
-<p>Previously you may write:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_udf</span><span class="p">:</span><span class="w"> </span><span class="nc">ForeignScalarUDF</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ffi_udf</span><span class="p">.</span><span class="n">try_into</span><span class="p">()</span><span class="o">?</span><span class="p">;</span>
-<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_udf</span><span class="p">:</span><span class="w"> </span><span class="nc">ScalarUDF</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">foreign_udf</span><span class="p">.</span><span class="n">into</span><span class="p">();</span>
-</pre></div>
-</div>
-<p>Instead this should now be:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_udf</span><span class="p">:</span><span class="w"> </span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">ScalarUDFImpl</span><span class="o">&gt;</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ffi_udf</span><span cla [...]
-<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">foreign_udf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ScalarUDF</span><span class="p">::</span><span class="n">new_from_shared_impl</span><span class="p">(</span><span class="n">foreign_udf</span><span class="p">);</span>
-</pre></div>
-</div>
-<p>When creating any of the following structs, we now require the user to
-provide a <code class="docutils literal notranslate"><span class="pre">TaskContextProvider</span></code> and optionally a <code class="docutils literal notranslate"><span class="pre">LogicalExtensionCodec</span></code>:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">FFI_CatalogListProvider</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">FFI_CatalogProvider</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">FFI_SchemaProvider</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">FFI_TableProvider</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">FFI_TableFunction</span></code></p></li>
-</ul>
-<p>Each of these structs has a <code class="docutils literal notranslate"><span class="pre">new()</span></code> and a <code class="docutils literal notranslate"><span class="pre">new_with_ffi_codec()</span></code> method for
-instantiation. For example, when you previously would write</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">table</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">MyTableProvider</span><span class="p">::</span><span class="n">new</span><span class="p">());</span>
-<span class="w">   </span><span class="kd">let</span><span class="w"> </span><span class="n">ffi_table</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FFI_TableProvider</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">table</span><span class="p">,</span><span class="w"> </span><span class="nb">None</span><span class="p">);</span>
-</pre></div>
-</div>
-<p>Now you will need to provide a <code class="docutils literal notranslate"><span class="pre">TaskContextProvider</span></code>. The most common
-implementation of this trait is <code class="docutils literal notranslate"><span class="pre">SessionContext</span></code>.</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">SessionContext</span><span class="p">::</span><span class="n">default</span><span class="p">());</span>
-<span class="w">   </span><span class="kd">let</span><span class="w"> </span><span class="n">table</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">MyTableProvider</span><span class="p">::</span><span class="n">new</span><span class="p">());</span>
-<span class="w">   </span><span class="kd">let</span><span class="w"> </span><span class="n">ffi_table</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FFI_TableProvider</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">table</span><span class="p">,</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span><span class="w"> </span><span class="n">ctx</span><span class="p">,< [...]
-</pre></div>
-</div>
-<p>The alternative function to create these structures may be more convenient
-if you are doing many of these operations. A <code class="docutils literal notranslate"><span class="pre">FFI_LogicalExtensionCodec</span></code> will
-store the <code class="docutils literal notranslate"><span class="pre">TaskContextProvider</span></code> as well.</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">codec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">DefaultLogicalExtensionCodec</span><span class="w"> </span><span class="p">{});</span>
-<span class="w">   </span><span class="kd">let</span><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">SessionContext</span><span class="p">::</span><span class="n">default</span><span class="p">());</span>
-<span class="w">   </span><span class="kd">let</span><span class="w"> </span><span class="n">ffi_codec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FFI_LogicalExtensionCodec</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">codec</span><span class="p">,</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span><span class="w"> </span><span class="n">ctx</span><span clas [...]
-<span class="w">   </span><span class="kd">let</span><span class="w"> </span><span class="n">table</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">MyTableProvider</span><span class="p">::</span><span class="n">new</span><span class="p">());</span>
-<span class="w">   </span><span class="kd">let</span><span class="w"> </span><span class="n">ffi_table</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FFI_TableProvider</span><span class="p">::</span><span class="n">new_with_ffi_codec</span><span class="p">(</span><span class="n">table</span><span class="p">,</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span><span class="w"> </span><span class="n">ffi_codec</sp [...]
-</pre></div>
-</div>
-<p>Additional information about the usage of the <code class="docutils literal notranslate"><span class="pre">TaskContextProvider</span></code> can be
-found in the crate README.</p>
-<p>Additionally, the FFI structure for Scalar UDF’s no longer contains a
-<code class="docutils literal notranslate"><span class="pre">return_type</span></code> call. This code was not used since the <code class="docutils literal notranslate"><span class="pre">ForeignScalarUDF</span></code>
-struct implements the <code class="docutils literal notranslate"><span class="pre">return_field_from_args</span></code> instead.</p>
-</section>
-<section id="projection-handling-moved-from-filescanconfig-to-filesource">
-<h3>Projection handling moved from FileScanConfig to FileSource<a class="headerlink" href="#projection-handling-moved-from-filescanconfig-to-filesource" title="Link to this heading">#</a></h3>
-<p>Projection handling has been moved from <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> into <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementations. This enables format-specific projection pushdown (e.g., Parquet can push down struct field access, Vortex can push down computed expressions into un-decoded data).</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who have implemented custom <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementations</p></li>
-<li><p>Users who use <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder::with_projection_indices</span></code> directly</p></li>
-</ul>
-<p><strong>Breaking changes:</strong></p>
-<ol class="arabic">
-<li><p><strong><code class="docutils literal notranslate"><span class="pre">FileSource::with_projection</span></code> replaced with <code class="docutils literal notranslate"><span class="pre">try_pushdown_projection</span></code>:</strong></p>
-<p>The <code class="docutils literal notranslate"><span class="pre">with_projection(&amp;self,</span> <span class="pre">config:</span> <span class="pre">&amp;FileScanConfig)</span> <span class="pre">-&gt;</span> <span class="pre">Arc&lt;dyn</span> <span class="pre">FileSource&gt;</span></code> method has been removed and replaced with <code class="docutils literal notranslate"><span class="pre">try_pushdown_projection(&amp;self,</span> <span class="pre">projection:</span> <span class="pr [...]
-</li>
-<li><p><strong><code class="docutils literal notranslate"><span class="pre">FileScanConfig.projection_exprs</span></code> field removed:</strong></p>
-<p>Projections are now stored in the <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> directly, not in <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code>.
-Various public helper methods that access projection information have been removed from <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code>.</p>
-</li>
-<li><p><strong><code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder::with_projection_indices</span></code> now returns <code class="docutils literal notranslate"><span class="pre">Result&lt;Self&gt;</span></code>:</strong></p>
-<p>This method can now fail if the projection pushdown fails.</p>
-</li>
-<li><p><strong><code class="docutils literal notranslate"><span class="pre">FileSource::create_file_opener</span></code> now returns <code class="docutils literal notranslate"><span class="pre">Result&lt;Arc&lt;dyn</span> <span class="pre">FileOpener&gt;&gt;</span></code>:</strong></p>
-<p>Previously returned <code class="docutils literal notranslate"><span class="pre">Arc&lt;dyn</span> <span class="pre">FileOpener&gt;</span></code> directly.
-Any <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementation that may fail to create a <code class="docutils literal notranslate"><span class="pre">FileOpener</span></code> should now return an appropriate error.</p>
-</li>
-<li><p><strong><code class="docutils literal notranslate"><span class="pre">DataSource::try_swapping_with_projection</span></code> signature changed:</strong></p>
-<p>Parameter changed from <code class="docutils literal notranslate"><span class="pre">&amp;[ProjectionExpr]</span></code> to <code class="docutils literal notranslate"><span class="pre">&amp;ProjectionExprs</span></code>.</p>
-</li>
-</ol>
-<p><strong>Migration guide:</strong></p>
-<p>If you have a custom <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementation:</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">FileSource</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">MyCustomSource</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">with_projection</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">config</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">FileScanConfig</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span [...]
-<span class="w">        </span><span class="c1">// Apply projection from config</span>
-<span class="w">        </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="bp">Self</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* ... */</span><span class="w"> </span><span class="p">})</span>
-<span class="w">    </span><span class="p">}</span>
-
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">create_file_opener</span><span class="p">(</span>
-<span class="w">        </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">        </span><span class="n">object_store</span><span class="p">:</span><span class="w"> </span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">ObjectStore</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">        </span><span class="n">base_config</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">FileScanConfig</span><span class="p">,</span>
-<span class="w">        </span><span class="n">partition</span><span class="p">:</span><span class="w"> </span><span class="kt">usize</span><span class="p">,</span>
-<span class="w">    </span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">FileOpener</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">MyOpener</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* ... */</span><span class="w"> </span><span class="p">})</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">FileSource</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">MyCustomSource</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">try_pushdown_projection</span><span class="p">(</span>
-<span class="w">        </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">        </span><span class="n">projection</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ProjectionExprs</span><span class="p">,</span>
-<span class="w">    </span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="nb">Option</span><span class="o">&lt;</span><span class="n">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">FileSource</span><span class="o">&gt;&gt;&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="c1">// Return None if projection cannot be pushed down</span>
-<span class="w">        </span><span class="c1">// Return Some(new_source) with projection applied if it can</span>
-<span class="w">        </span><span class="nb">Ok</span><span class="p">(</span><span class="nb">Some</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="bp">Self</span><span class="w"> </span><span class="p">{</span>
-<span class="w">            </span><span class="n">projection</span><span class="p">:</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">projection</span><span class="p">.</span><span class="n">clone</span><span class="p">()),</span>
-<span class="w">            </span><span class="cm">/* ... */</span>
-<span class="w">        </span><span class="p">})))</span>
-<span class="w">    </span><span class="p">}</span>
-
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">projection</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Option</span><span class="o">&lt;&amp;</span><span class="n">ProjectionExprs</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="bp">self</span><span class="p">.</span><span class="n">projection</span><span class="p">.</span><span class="n">as_ref</span><span class="p">()</span>
-<span class="w">    </span><span class="p">}</span>
-
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">create_file_opener</span><span class="p">(</span>
-<span class="w">        </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">        </span><span class="n">object_store</span><span class="p">:</span><span class="w"> </span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">ObjectStore</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">        </span><span class="n">base_config</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">FileScanConfig</span><span class="p">,</span>
-<span class="w">        </span><span class="n">partition</span><span class="p">:</span><span class="w"> </span><span class="kt">usize</span><span class="p">,</span>
-<span class="w">    </span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">FileOpener</span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="nb">Ok</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">MyOpener</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* ... */</span><span class="w"> </span><span class="p">}))</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>We recommend you look at <a class="reference external" href="https://github.com/apache/datafusion/pull/18627">#18627</a>
-that introduced these changes for more examples for how this was handled for the various built in file sources.</p>
-<p>We have added <a class="reference external" href="https://docs.rs/datafusion-datasource/latest/datafusion_datasource/projection/struct.SplitProjection.html"><code class="docutils literal notranslate"><span class="pre">SplitProjection</span></code></a> and <a class="reference external" href="https://docs.rs/datafusion-datasource/latest/datafusion_datasource/projection/struct.ProjectionOpener.html"><code class="docutils literal notranslate"><span class="pre">ProjectionOpener</span></cod [...]
-<p>For file sources that can only handle simple column selections (not computed expressions), use the <code class="docutils literal notranslate"><span class="pre">SplitProjection</span></code> and <code class="docutils literal notranslate"><span class="pre">ProjectionOpener</span></code> helpers to split the projection into pushdownable and non-pushdownable parts:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_datasource</span><span class="p">::</span><span class="n">projection</span><span class="p">::{</span><span class="n">SplitProjection</span><span class="p">,</span><span class="w"> </span><span class="n">ProjectionOpener</span><span class="p">};</span>
-
-<span class="c1">// In try_pushdown_projection:</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">split</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SplitProjection</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">projection</span><span class="p">,</span><span class="w"> </span><span class="bp">self</span><span class="p">.</span><span class="n">table_schema</span><span class="p">())</span><span class="o">?</span><span clas [...]
-<span class="c1">// Use split.file_projection() for what to push down to the file format</span>
-<span class="c1">// The ProjectionOpener wrapper will handle the rest</span>
-</pre></div>
-</div>
-<p><strong>For <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code> users:</strong></p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span>let config = FileScanConfigBuilder::new(url, source)
-<span class="gd">-   .with_projection_indices(Some(vec![0, 2, 3]))</span>
-<span class="gi">+   .with_projection_indices(Some(vec![0, 2, 3]))?</span>
-<span class="w"> </span>   .build();
-</pre></div>
-</div>
-</section>
-<section id="schemaadapter-and-schemaadapterfactory-completely-removed">
-<h3><code class="docutils literal notranslate"><span class="pre">SchemaAdapter</span></code> and <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> completely removed<a class="headerlink" href="#schemaadapter-and-schemaadapterfactory-completely-removed" title="Link to this heading">#</a></h3>
-<p>Following the deprecation announced in <a class="reference internal" href="#deprecating-schemaadapterfactory-and-schemaadapter">DataFusion 49.0.0</a>, <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> has been fully removed from Parquet scanning. This applies to both:</p>
-<p>The following symbols have been deprecated and will be removed in the next release:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">SchemaAdapter</span></code> trait</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> trait</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">SchemaMapper</span></code> trait</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">SchemaMapping</span></code> struct</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">DefaultSchemaAdapterFactory</span></code> struct</p></li>
-</ul>
-<p>These types were previously used to adapt record batch schemas during file reading.
-This functionality has been replaced by <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code>, which rewrites expressions at planning time rather than transforming batches at runtime.
-If you were using a custom <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> for schema adaptation (e.g., default column values, type coercion), you should now implement <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code> instead.
-See the <a class="reference external" href="https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs">default column values example</a> for how to implement a custom <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code>.</p>
-<p><strong>Migration guide:</strong></p>
-<p>If you implemented a custom <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code>, migrate to <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code>.
-See the <a class="reference external" href="https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs">default column values example</a> for a complete implementation.</p>
-</section>
-</section>
-<section id="datafusion-51-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">51.0.0</span></code><a class="headerlink" href="#datafusion-51-0-0" title="Link to this heading">#</a></h2>
-<section id="arrow-parquet-updated-to-57-0-0">
-<h3><code class="docutils literal notranslate"><span class="pre">arrow</span></code> / <code class="docutils literal notranslate"><span class="pre">parquet</span></code> updated to 57.0.0<a class="headerlink" href="#arrow-parquet-updated-to-57-0-0" title="Link to this heading">#</a></h3>
-</section>
-<section id="upgrade-to-arrow-57-0-0-and-parquet-57-0-0">
-<h3>Upgrade to arrow <code class="docutils literal notranslate"><span class="pre">57.0.0</span></code> and parquet <code class="docutils literal notranslate"><span class="pre">57.0.0</span></code><a class="headerlink" href="#upgrade-to-arrow-57-0-0-and-parquet-57-0-0" title="Link to this heading">#</a></h3>
-<p>This version of DataFusion upgrades the underlying Apache Arrow implementation
-to version <code class="docutils literal notranslate"><span class="pre">57.0.0</span></code>, including several dependent crates such as <code class="docutils literal notranslate"><span class="pre">prost</span></code>,
-<code class="docutils literal notranslate"><span class="pre">tonic</span></code>, <code class="docutils literal notranslate"><span class="pre">pyo3</span></code>, and <code class="docutils literal notranslate"><span class="pre">substrait</span></code>. . See the <a class="reference external" href="https://github.com/apache/arrow-rs/releases/tag/57.0.0">release
-notes</a> for more details.</p>
-</section>
-<section id="msrv-updated-to-1-88-0">
-<h3><code class="docutils literal notranslate"><span class="pre">MSRV</span></code> updated to 1.88.0<a class="headerlink" href="#msrv-updated-to-1-88-0" title="Link to this heading">#</a></h3>
-<p>The Minimum Supported Rust Version (MSRV) has been updated to <a class="reference external" href="https://releases.rs/docs/1.88.0/"><code class="docutils literal notranslate"><span class="pre">1.88.0</span></code></a>.</p>
-</section>
-<section id="functionregistry-exposes-two-additional-methods">
-<h3><code class="docutils literal notranslate"><span class="pre">FunctionRegistry</span></code> exposes two additional methods<a class="headerlink" href="#functionregistry-exposes-two-additional-methods" title="Link to this heading">#</a></h3>
-<p><code class="docutils literal notranslate"><span class="pre">FunctionRegistry</span></code> exposes two additional methods <code class="docutils literal notranslate"><span class="pre">udafs</span></code> and <code class="docutils literal notranslate"><span class="pre">udwfs</span></code> which expose set of registered user defined aggregation and window function names. To upgrade implement methods returning set of registered function names:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span>impl FunctionRegistry for FunctionRegistryImpl {
-<span class="w"> </span>     fn udfs(&amp;self) -&gt; HashSet&lt;String&gt; {
-<span class="w"> </span>        self.scalar_functions.keys().cloned().collect()
-<span class="w"> </span>    }
-<span class="gi">+    fn udafs(&amp;self) -&gt; HashSet&lt;String&gt; {</span>
-<span class="gi">+        self.aggregate_functions.keys().cloned().collect()</span>
-<span class="gi">+    }</span>
-<span class="gi">+</span>
-<span class="gi">+    fn udwfs(&amp;self) -&gt; HashSet&lt;String&gt; {</span>
-<span class="gi">+        self.window_functions.keys().cloned().collect()</span>
-<span class="gi">+    }</span>
-}
-</pre></div>
-</div>
-</section>
-<section id="datafusion-proto-use-taskcontext-rather-than-sessioncontext-in-physical-plan-serde-methods">
-<h3><code class="docutils literal notranslate"><span class="pre">datafusion-proto</span></code> use <code class="docutils literal notranslate"><span class="pre">TaskContext</span></code> rather than <code class="docutils literal notranslate"><span class="pre">SessionContext</span></code> in physical plan serde methods<a class="headerlink" href="#datafusion-proto-use-taskcontext-rather-than-sessioncontext-in-physical-plan-serde-methods" title="Link to this heading">#</a></h3>
-<p>There have been changes in the public API methods of <code class="docutils literal notranslate"><span class="pre">datafusion-proto</span></code> which handle physical plan serde.</p>
-<p>Methods like <code class="docutils literal notranslate"><span class="pre">physical_plan_from_bytes</span></code>, <code class="docutils literal notranslate"><span class="pre">parse_physical_expr</span></code> and similar, expect <code class="docutils literal notranslate"><span class="pre">TaskContext</span></code> instead of <code class="docutils literal notranslate"><span class="pre">SessionContext</span></code></p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="gd">- let plan2 = physical_plan_from_bytes(&amp;bytes, &amp;ctx)?;</span>
-<span class="gi">+ let plan2 = physical_plan_from_bytes(&amp;bytes, &amp;ctx.task_ctx())?;</span>
-</pre></div>
-</div>
-<p>as <code class="docutils literal notranslate"><span class="pre">TaskContext</span></code> contains <code class="docutils literal notranslate"><span class="pre">RuntimeEnv</span></code> methods such as <code class="docutils literal notranslate"><span class="pre">try_into_physical_plan</span></code> will not have explicit <code class="docutils literal notranslate"><span class="pre">RuntimeEnv</span></code> parameter.</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span>let result_exec_plan: Arc&lt;dyn ExecutionPlan&gt; = proto
-<span class="gd">-   .try_into_physical_plan(&amp;ctx, runtime.deref(), &amp;composed_codec)</span>
-<span class="gi">+.  .try_into_physical_plan(&amp;ctx.task_ctx(), &amp;composed_codec)</span>
-</pre></div>
-</div>
-<p><code class="docutils literal notranslate"><span class="pre">PhysicalExtensionCodec::try_decode()</span></code> expects <code class="docutils literal notranslate"><span class="pre">TaskContext</span></code> instead of <code class="docutils literal notranslate"><span class="pre">FunctionRegistry</span></code>:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span>pub trait PhysicalExtensionCodec {
-<span class="w"> </span>   fn try_decode(
-<span class="w"> </span>       &amp;self,
-<span class="w"> </span>       buf: &amp;[u8],
-<span class="w"> </span>       inputs: &amp;[Arc&lt;dyn ExecutionPlan&gt;],
-<span class="gd">-        registry: &amp;dyn FunctionRegistry,</span>
-<span class="gi">+        ctx: &amp;TaskContext,</span>
-<span class="w"> </span>   ) -&gt; Result&lt;Arc&lt;dyn ExecutionPlan&gt;&gt;;
-</pre></div>
-</div>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/issues/17601">issue #17601</a> for more details.</p>
-</section>
-<section id="sessionstate-s-sql-to-statement-method-takes-dialect-rather-than-a-str">
-<h3><code class="docutils literal notranslate"><span class="pre">SessionState</span></code>’s <code class="docutils literal notranslate"><span class="pre">sql_to_statement</span></code> method takes <code class="docutils literal notranslate"><span class="pre">Dialect</span></code> rather than a <code class="docutils literal notranslate"><span class="pre">str</span></code><a class="headerlink" href="#sessionstate-s-sql-to-statement-method-takes-dialect-rather-than-a-str" title="Link to th [...]
-<p>The <code class="docutils literal notranslate"><span class="pre">dialect</span></code> parameter of <code class="docutils literal notranslate"><span class="pre">sql_to_statement</span></code> method defined in <code class="docutils literal notranslate"><span class="pre">datafusion::execution::session_state::SessionState</span></code>
-has changed from <code class="docutils literal notranslate"><span class="pre">&amp;str</span></code> to <code class="docutils literal notranslate"><span class="pre">&amp;Dialect</span></code>.
-<code class="docutils literal notranslate"><span class="pre">Dialect</span></code> is an enum defined in the <code class="docutils literal notranslate"><span class="pre">datafusion-common</span></code>
-crate under the <code class="docutils literal notranslate"><span class="pre">config</span></code> module that provides type safety
-and better validation for SQL dialect selection</p>
-</section>
-<section id="reorganization-of-listingtable-into-datafusion-catalog-listing-crate">
-<h3>Reorganization of <code class="docutils literal notranslate"><span class="pre">ListingTable</span></code> into <code class="docutils literal notranslate"><span class="pre">datafusion-catalog-listing</span></code> crate<a class="headerlink" href="#reorganization-of-listingtable-into-datafusion-catalog-listing-crate" title="Link to this heading">#</a></h3>
-<p>There has been a long standing request to remove features such as <code class="docutils literal notranslate"><span class="pre">ListingTable</span></code>
-from the <code class="docutils literal notranslate"><span class="pre">datafusion</span></code> crate to support faster build times. The structs
-<code class="docutils literal notranslate"><span class="pre">ListingOptions</span></code>, <code class="docutils literal notranslate"><span class="pre">ListingTable</span></code>, and <code class="docutils literal notranslate"><span class="pre">ListingTableConfig</span></code> are now available
-within the <code class="docutils literal notranslate"><span class="pre">datafusion-catalog-listing</span></code> crate. These are re-exported in
-the <code class="docutils literal notranslate"><span class="pre">datafusion</span></code> crate, so this should be a minimal impact to existing users.</p>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/issues/14462">issue #14462</a> and <a class="reference external" href="https://github.com/apache/datafusion/issues/17713">issue #17713</a> for more details.</p>
-</section>
-<section id="reorganization-of-arrowsource-into-datafusion-datasource-arrow-crate">
-<h3>Reorganization of <code class="docutils literal notranslate"><span class="pre">ArrowSource</span></code> into <code class="docutils literal notranslate"><span class="pre">datafusion-datasource-arrow</span></code> crate<a class="headerlink" href="#reorganization-of-arrowsource-into-datafusion-datasource-arrow-crate" title="Link to this heading">#</a></h3>
-<p>To support <a class="reference external" href="https://github.com/apache/datafusion/issues/17713">issue #17713</a> the <code class="docutils literal notranslate"><span class="pre">ArrowSource</span></code> code has been removed from
-the <code class="docutils literal notranslate"><span class="pre">datafusion</span></code> core crate into it’s own crate, <code class="docutils literal notranslate"><span class="pre">datafusion-datasource-arrow</span></code>.
-This follows the pattern for the AVRO, CSV, JSON, and Parquet data sources.
-Users may need to update their paths to account for these changes.</p>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/issues/17713">issue #17713</a> for more details.</p>
-</section>
-<section id="filescanconfig-projection-renamed-to-filescanconfig-projection-exprs">
-<h3><code class="docutils literal notranslate"><span class="pre">FileScanConfig::projection</span></code> renamed to <code class="docutils literal notranslate"><span class="pre">FileScanConfig::projection_exprs</span></code><a class="headerlink" href="#filescanconfig-projection-renamed-to-filescanconfig-projection-exprs" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">projection</span></code> field in <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> has been renamed to <code class="docutils literal notranslate"><span class="pre">projection_exprs</span></code> and its type has changed from <code class="docutils literal notranslate"><span class="pre">Option&lt;Vec&lt;usize&gt;&gt;</span></code> to <code class="docutils literal notranslate"><span  [...]
-<p><strong>Impact on direct field access:</strong></p>
-<p>If you directly access the <code class="docutils literal notranslate"><span class="pre">projection</span></code> field:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">config</span><span class="p">:</span><span class="w"> </span><span class="nc">FileScanConfig</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">..</span><span class="p">.;</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">projection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="p">.</span><span class="n">projection</span><span class="p">;</span>
-</pre></div>
-</div>
-<p>You should update to:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">config</span><span class="p">:</span><span class="w"> </span><span class="nc">FileScanConfig</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">..</span><span class="p">.;</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">projection_exprs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="p">.</span><span class="n">projection_exprs</span><span class="p">;</span>
-</pre></div>
-</div>
-<p><strong>Impact on builders:</strong></p>
-<p>The <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder::with_projection()</span></code> method has been deprecated in favor of <code class="docutils literal notranslate"><span class="pre">with_projection_indices()</span></code>:</p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span>let config = FileScanConfigBuilder::new(url, file_source)
-<span class="gd">-   .with_projection(Some(vec![0, 2, 3]))</span>
-<span class="gi">+   .with_projection_indices(Some(vec![0, 2, 3]))</span>
-<span class="w"> </span>   .build();
-</pre></div>
-</div>
-<p>Note: <code class="docutils literal notranslate"><span class="pre">with_projection()</span></code> still works but is deprecated and will be removed in a future release.</p>
-<p><strong>What is <code class="docutils literal notranslate"><span class="pre">ProjectionExprs</span></code>?</strong></p>
-<p><code class="docutils literal notranslate"><span class="pre">ProjectionExprs</span></code> is a new type that represents a list of physical expressions for projection. While it can be constructed from column indices (which is what <code class="docutils literal notranslate"><span class="pre">with_projection_indices</span></code> does internally), it also supports arbitrary physical expressions, enabling advanced features like expression evaluation during scanning.</p>
-<p>You can access column indices from <code class="docutils literal notranslate"><span class="pre">ProjectionExprs</span></code> using its methods if needed:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">projection_exprs</span><span class="p">:</span><span class="w"> </span><span class="nc">ProjectionExprs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">..</span><span class="p">.;</span>
-<span class="c1">// Get the column indices if the projection only contains simple column references</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">indices</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">projection_exprs</span><span class="p">.</span><span class="n">column_indices</span><span class="p">();</span>
-</pre></div>
-</div>
-</section>
-<section id="describe-query-support">
-<h3><code class="docutils literal notranslate"><span class="pre">DESCRIBE</span> <span class="pre">query</span></code> support<a class="headerlink" href="#describe-query-support" title="Link to this heading">#</a></h3>
-<p><code class="docutils literal notranslate"><span class="pre">DESCRIBE</span> <span class="pre">query</span></code> was previously an alias for <code class="docutils literal notranslate"><span class="pre">EXPLAIN</span> <span class="pre">query</span></code>, which outputs the
-<em>execution plan</em> of the query. With this release, <code class="docutils literal notranslate"><span class="pre">DESCRIBE</span> <span class="pre">query</span></code> now outputs
-the computed <em>schema</em> of the query, consistent with the behavior of <code class="docutils literal notranslate"><span class="pre">DESCRIBE</span> <span class="pre">table_name</span></code>.</p>
-</section>
-<section id="datafusion-execution-time-zone-default-configuration-changed">
-<h3><code class="docutils literal notranslate"><span class="pre">datafusion.execution.time_zone</span></code> default configuration changed<a class="headerlink" href="#datafusion-execution-time-zone-default-configuration-changed" title="Link to this heading">#</a></h3>
-<p>The default value for <code class="docutils literal notranslate"><span class="pre">datafusion.execution.time_zone</span></code> previously was a string value of <code class="docutils literal notranslate"><span class="pre">+00:00</span></code> (GMT/Zulu time).
-This was changed to be an <code class="docutils literal notranslate"><span class="pre">Option&lt;String&gt;</span></code> with a default of <code class="docutils literal notranslate"><span class="pre">None</span></code>. If you want to change the timezone back
-to the previous value you can execute the sql:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="k">SET</span>
-<span class="n">TIMEZONE</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">&#39;+00:00&#39;</span><span class="p">;</span>
-</pre></div>
-</div>
-<p>This change was made to better support using the default timezone in scalar UDF functions such as
-<code class="docutils literal notranslate"><span class="pre">now</span></code>, <code class="docutils literal notranslate"><span class="pre">current_date</span></code>, <code class="docutils literal notranslate"><span class="pre">current_time</span></code>, and <code class="docutils literal notranslate"><span class="pre">to_timestamp</span></code> among others.</p>
-</section>
-<section id="introduction-of-tableschema-and-changes-to-filesource-with-schema-method">
-<h3>Introduction of <code class="docutils literal notranslate"><span class="pre">TableSchema</span></code> and changes to <code class="docutils literal notranslate"><span class="pre">FileSource::with_schema()</span></code> method<a class="headerlink" href="#introduction-of-tableschema-and-changes-to-filesource-with-schema-method" title="Link to this heading">#</a></h3>
-<p>A new <code class="docutils literal notranslate"><span class="pre">TableSchema</span></code> struct has been introduced in the <code class="docutils literal notranslate"><span class="pre">datafusion-datasource</span></code> crate to better manage table schemas with partition columns. This struct helps distinguish between:</p>
-<ul class="simple">
-<li><p><strong>File schema</strong>: The schema of actual data files on disk</p></li>
-<li><p><strong>Partition columns</strong>: Columns derived from directory structure (e.g., Hive-style partitioning)</p></li>
-<li><p><strong>Table schema</strong>: The complete schema combining both file and partition columns</p></li>
-</ul>
-<p>As part of this change, the <code class="docutils literal notranslate"><span class="pre">FileSource::with_schema()</span></code> method signature has changed from accepting a <code class="docutils literal notranslate"><span class="pre">SchemaRef</span></code> to accepting a <code class="docutils literal notranslate"><span class="pre">TableSchema</span></code>.</p>
-<p><strong>Who is affected:</strong></p>
-<ul class="simple">
-<li><p>Users who have implemented custom <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementations will need to update their code</p></li>
-<li><p>Users who only use built-in file sources (Parquet, CSV, JSON, AVRO, Arrow) are not affected</p></li>
-</ul>
-<p><strong>Migration guide for custom <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementations:</strong></p>
-<div class="highlight-diff notranslate"><div class="highlight"><pre><span></span><span class="w"> </span>use datafusion_datasource::file::FileSource;
-<span class="gd">-use arrow::datatypes::SchemaRef;</span>
-<span class="gi">+use datafusion_datasource::TableSchema;</span>
-
-<span class="w"> </span>impl FileSource for MyCustomSource {
-<span class="gd">-    fn with_schema(&amp;self, schema: SchemaRef) -&gt; Arc&lt;dyn FileSource&gt; {</span>
-<span class="gi">+    fn with_schema(&amp;self, schema: TableSchema) -&gt; Arc&lt;dyn FileSource&gt; {</span>
-<span class="w"> </span>        Arc::new(Self {
-<span class="gd">-            schema: Some(schema),</span>
-<span class="gi">+            // Use schema.file_schema() to get the file schema without partition columns</span>
-<span class="gi">+            schema: Some(Arc::clone(schema.file_schema())),</span>
-<span class="w"> </span>            ..self.clone()
-<span class="w"> </span>        })
-<span class="w"> </span>    }
-<span class="w"> </span>}
-</pre></div>
-</div>
-<p>For implementations that need access to partition columns:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">fn</span><span class="w"> </span><span class="nf">with_schema</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">schema</span><span class="p">:</span><span class="w"> </span><span class="nc">TableSchema</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class [...]
-<span class="w">    </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="bp">Self</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="n">file_schema</span><span class="p">:</span><span class="w"> </span><span class="nc">Arc</span><span class="p">::</span><span class="n">clone</span><span class="p">(</span><span class="n">schema</span><span class="p">.</span><span class="n">file_schema</span><span class="p">()),</span>
-<span class="w">        </span><span class="n">partition_cols</span><span class="p">:</span><span class="w"> </span><span class="nc">schema</span><span class="p">.</span><span class="n">table_partition_cols</span><span class="p">().</span><span class="n">clone</span><span class="p">(),</span>
-<span class="w">        </span><span class="n">table_schema</span><span class="p">:</span><span class="w"> </span><span class="nc">Arc</span><span class="p">::</span><span class="n">clone</span><span class="p">(</span><span class="n">schema</span><span class="p">.</span><span class="n">table_schema</span><span class="p">()),</span>
-<span class="w">        </span><span class="o">..</span><span class="bp">self</span><span class="p">.</span><span class="n">clone</span><span class="p">()</span>
-<span class="w">    </span><span class="p">})</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p><strong>Note</strong>: Most <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> implementations only need to store the file schema (without partition columns), as shown in the first example. The second pattern of storing all three schema components is typically only needed for advanced use cases where you need access to different schema representations for different operations (e.g., ParquetSource uses the file schema for building pruning predicates b [...]
-<p><strong>Using <code class="docutils literal notranslate"><span class="pre">TableSchema</span></code> directly:</strong></p>
-<p>If you’re constructing a <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> or working with table schemas and partition columns, you can now use <code class="docutils literal notranslate"><span class="pre">TableSchema</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_datasource</span><span class="p">::</span><span class="n">TableSchema</span><span class="p">;</span>
-<span class="k">use</span><span class="w"> </span><span class="n">arrow</span><span class="p">::</span><span class="n">datatypes</span><span class="p">::{</span><span class="n">Schema</span><span class="p">,</span><span class="w"> </span><span class="n">Field</span><span class="p">,</span><span class="w"> </span><span class="n">DataType</span><span class="p">};</span>
-<span class="k">use</span><span class="w"> </span><span class="n">std</span><span class="p">::</span><span class="n">sync</span><span class="p">::</span><span class="n">Arc</span><span class="p">;</span>
-
-<span class="c1">// Create a TableSchema with partition columns</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">file_schema</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">Schema</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="fm">vec!</span><span class="p">[</span>
-<span class="w">    </span><span class="n">Field</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="s">&quot;user_id&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">Int64</span><span class="p">,</span><span class="w"> </span><span class="kc">false</span><span class="p">),</span>
-<span class="w">    </span><span class="n">Field</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="s">&quot;amount&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">Float64</span><span class="p">,</span><span class="w"> </span><span class="kc">false</span><span class="p">),</span>
-<span class="p">]));</span>
-
-<span class="kd">let</span><span class="w"> </span><span class="n">partition_cols</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="fm">vec!</span><span class="p">[</span>
-<span class="w">    </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">Field</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="s">&quot;date&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">Utf8</span><span class="p">,</span><span class="w"> </span><span class="kc">false</span><span class="p [...]
-<span class="w">    </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">Field</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="s">&quot;region&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">Utf8</span><span class="p">,</span><span class="w"> </span><span class="kc">false</span><span class= [...]
-<span class="p">];</span>
-
-<span class="kd">let</span><span class="w"> </span><span class="n">table_schema</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TableSchema</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">file_schema</span><span class="p">,</span><span class="w"> </span><span class="n">partition_cols</span><span class="p">);</span>
-
-<span class="c1">// Access different schema representations</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">file_schema_ref</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">table_schema</span><span class="p">.</span><span class="n">file_schema</span><span class="p">();</span><span class="w">      </span><span class="c1">// Schema without partition columns</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">full_schema</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">table_schema</span><span class="p">.</span><span class="n">table_schema</span><span class="p">();</span><span class="w">          </span><span class="c1">// Complete schema with partition columns</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">partition_cols_ref</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">table_schema</span><span class="p">.</span><span class="n">table_partition_cols</span><span class="p">();</span><span class="w"> </span><span class="c1">// Just the partition columns</span>
-</pre></div>
-</div>
-</section>
-<section id="aggregateudfimpl-is-ordered-set-aggregate-has-been-renamed-to-aggregateudfimpl-supports-within-group-clause">
-<h3><code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::is_ordered_set_aggregate</span></code> has been renamed to <code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::supports_within_group_clause</span></code><a class="headerlink" href="#aggregateudfimpl-is-ordered-set-aggregate-has-been-renamed-to-aggregateudfimpl-supports-within-group-clause" title="Link to this heading">#</a></h3>
-<p>This method has been renamed to better reflect the actual impact it has for aggregate UDF implementations.
-The accompanying <code class="docutils literal notranslate"><span class="pre">AggregateUDF::is_ordered_set_aggregate</span></code> has also been renamed to <code class="docutils literal notranslate"><span class="pre">AggregateUDF::supports_within_group_clause</span></code>.
-No functionality has been changed with regards to this method; it still refers only to permitting use of <code class="docutils literal notranslate"><span class="pre">WITHIN</span> <span class="pre">GROUP</span></code>
-SQL syntax for the aggregate function.</p>
-</section>
-</section>
-<section id="datafusion-50-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">50.0.0</span></code><a class="headerlink" href="#datafusion-50-0-0" title="Link to this heading">#</a></h2>
-<section id="listingtable-automatically-detects-hive-partitioned-tables">
-<h3>ListingTable automatically detects Hive Partitioned tables<a class="headerlink" href="#listingtable-automatically-detects-hive-partitioned-tables" title="Link to this heading">#</a></h3>
-<p>DataFusion 50.0.0 automatically infers Hive partitions when using the <code class="docutils literal notranslate"><span class="pre">ListingTableFactory</span></code> and <code class="docutils literal notranslate"><span class="pre">CREATE</span> <span class="pre">EXTERNAL</span> <span class="pre">TABLE</span></code>. Previously,
-when creating a <code class="docutils literal notranslate"><span class="pre">ListingTable</span></code>, datasets that use Hive partitioning (e.g.
-<code class="docutils literal notranslate"><span class="pre">/table_root/column1=value1/column2=value2/data.parquet</span></code>) would not have the Hive columns reflected in
-the table’s schema or data. The previous behavior can be
-restored by setting the <code class="docutils literal notranslate"><span class="pre">datafusion.execution.listing_table_factory_infer_partitions</span></code> configuration option to <code class="docutils literal notranslate"><span class="pre">false</span></code>.
-See <a class="reference external" href="https://github.com/apache/datafusion/issues/17049">issue #17049</a> for more details.</p>
-</section>
-<section id="msrv-updated-to-1-86-0">
-<h3><code class="docutils literal notranslate"><span class="pre">MSRV</span></code> updated to 1.86.0<a class="headerlink" href="#msrv-updated-to-1-86-0" title="Link to this heading">#</a></h3>
-<p>The Minimum Supported Rust Version (MSRV) has been updated to <a class="reference external" href="https://releases.rs/docs/1.86.0/"><code class="docutils literal notranslate"><span class="pre">1.86.0</span></code></a>.
-See <a class="reference external" href="https://github.com/apache/datafusion/pull/17230">#17230</a> for details.</p>
-</section>
-<section id="scalarudfimpl-aggregateudfimpl-and-windowudfimpl-traits-now-require-partialeq-eq-and-hash-traits">
-<h3><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl</span></code>, <code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl</span></code> and <code class="docutils literal notranslate"><span class="pre">WindowUDFImpl</span></code> traits now require <code class="docutils literal notranslate"><span class="pre">PartialEq</span></code>, <code class="docutils literal notranslate"><span class="pre">Eq</span></code>, and <code class="docutils lit [...]
-<p>To address error-proneness of <code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::equals</span></code>, <code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::equals</span></code>and
-<code class="docutils literal notranslate"><span class="pre">WindowUDFImpl::equals</span></code> methods and to make it easy to implement function equality correctly,
-the <code class="docutils literal notranslate"><span class="pre">equals</span></code> and <code class="docutils literal notranslate"><span class="pre">hash_value</span></code> methods have been removed from <code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl</span></code>, <code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl</span></code>
-and <code class="docutils literal notranslate"><span class="pre">WindowUDFImpl</span></code> traits. They are replaced the requirement to implement the <code class="docutils literal notranslate"><span class="pre">PartialEq</span></code>, <code class="docutils literal notranslate"><span class="pre">Eq</span></code>,
-and <code class="docutils literal notranslate"><span class="pre">Hash</span></code> traits on any type implementing <code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl</span></code>, <code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl</span></code> or <code class="docutils literal notranslate"><span class="pre">WindowUDFImpl</span></code>.
-Please see <a class="reference external" href="https://github.com/apache/datafusion/issues/16677">issue #16677</a> for more details.</p>
-<p>Most of the scalar functions are stateless and have a <code class="docutils literal notranslate"><span class="pre">signature</span></code> field. These can be migrated
-using regular expressions</p>
-<ul class="simple">
-<li><p>search for <code class="docutils literal notranslate"><span class="pre">\#\[derive\(Debug\)\](\n</span> <span class="pre">*(pub</span> <span class="pre">)?struct</span> <span class="pre">\w+</span> <span class="pre">\{\n</span> <span class="pre">*signature\:</span> <span class="pre">Signature\,\n</span> <span class="pre">*\})</span></code>,</p></li>
-<li><p>replace with <code class="docutils literal notranslate"><span class="pre">#[derive(Debug,</span> <span class="pre">PartialEq,</span> <span class="pre">Eq,</span> <span class="pre">Hash)]$1</span></code>,</p></li>
-<li><p>review all the changes and make sure only function structs were changed.</p></li>
-</ul>
-</section>
-<section id="asyncscalarudfimpl-invoke-async-with-args-returns-columnarvalue">
-<h3><code class="docutils literal notranslate"><span class="pre">AsyncScalarUDFImpl::invoke_async_with_args</span></code> returns <code class="docutils literal notranslate"><span class="pre">ColumnarValue</span></code><a class="headerlink" href="#asyncscalarudfimpl-invoke-async-with-args-returns-columnarvalue" title="Link to this heading">#</a></h3>
-<p>In order to enable single value optimizations and be consistent with other
-user defined function APIs, the <code class="docutils literal notranslate"><span class="pre">AsyncScalarUDFImpl::invoke_async_with_args</span></code> method now
-returns a <code class="docutils literal notranslate"><span class="pre">ColumnarValue</span></code> instead of a <code class="docutils literal notranslate"><span class="pre">ArrayRef</span></code>.</p>
-<p>To upgrade, change the return type of your implementation</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">AsyncScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">AskLLM</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">async</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_async_with_args</span><span class="p">(</span>
-<span class="w">        </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">        </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nc">ScalarFunctionArgs</span><span class="p">,</span>
-<span class="w">        </span><span class="n">_option</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ConfigOptions</span><span class="p">,</span>
-<span class="w">    </span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">ColumnarValue</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="o">..</span>
-<span class="w">      </span><span class="k">return</span><span class="w"> </span><span class="n">array_ref</span><span class="p">;</span><span class="w"> </span><span class="c1">// old code</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>To return a <code class="docutils literal notranslate"><span class="pre">ColumnarValue</span></code></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">AsyncScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">AskLLM</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">async</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_async_with_args</span><span class="p">(</span>
-<span class="w">        </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">        </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nc">ScalarFunctionArgs</span><span class="p">,</span>
-<span class="w">        </span><span class="n">_option</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ConfigOptions</span><span class="p">,</span>
-<span class="w">    </span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">ColumnarValue</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="o">..</span>
-<span class="w">      </span><span class="k">return</span><span class="w"> </span><span class="n">ColumnarValue</span><span class="p">::</span><span class="n">from</span><span class="p">(</span><span class="n">array_ref</span><span class="p">);</span><span class="w"> </span><span class="c1">// new code</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/issues/16896">#16896</a> for more details.</p>
-</section>
-<section id="projectionexpr-changed-from-type-alias-to-struct">
-<h3><code class="docutils literal notranslate"><span class="pre">ProjectionExpr</span></code> changed from type alias to struct<a class="headerlink" href="#projectionexpr-changed-from-type-alias-to-struct" title="Link to this heading">#</a></h3>
-<p><code class="docutils literal notranslate"><span class="pre">ProjectionExpr</span></code> has been changed from a type alias to a struct with named fields to improve code clarity and maintainability.</p>
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">pub</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="nc">ProjectionExpr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">PhysicalExpr</span><span class="o">&gt;</span><span class [...]
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="cp">#[derive(Debug, Clone)]</span>
-<span class="k">pub</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">ProjectionExpr</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">pub</span><span class="w"> </span><span class="n">expr</span><span class="p">:</span><span class="w"> </span><span class="nc">Arc</span><span class="o">&lt;</span><span class="k">dyn</span><span class="w"> </span><span class="n">PhysicalExpr</span><span class="o">&gt;</span><span class="p">,</span>
-<span class="w">    </span><span class="k">pub</span><span class="w"> </span><span class="n">alias</span><span class="p">:</span><span class="w"> </span><span class="nb">String</span><span class="p">,</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>To upgrade your code:</p>
-<ul class="simple">
-<li><p>Replace tuple construction <code class="docutils literal notranslate"><span class="pre">(expr,</span> <span class="pre">alias)</span></code> with <code class="docutils literal notranslate"><span class="pre">ProjectionExpr::new(expr,</span> <span class="pre">alias)</span></code> or <code class="docutils literal notranslate"><span class="pre">ProjectionExpr</span> <span class="pre">{</span> <span class="pre">expr,</span> <span class="pre">alias</span> <span class="pre">}</span></cod [...]
-<li><p>Replace tuple field access <code class="docutils literal notranslate"><span class="pre">.0</span></code> and <code class="docutils literal notranslate"><span class="pre">.1</span></code> with <code class="docutils literal notranslate"><span class="pre">.expr</span></code> and <code class="docutils literal notranslate"><span class="pre">.alias</span></code></p></li>
-<li><p>Update pattern matching from <code class="docutils literal notranslate"><span class="pre">(expr,</span> <span class="pre">alias)</span></code> to <code class="docutils literal notranslate"><span class="pre">ProjectionExpr</span> <span class="pre">{</span> <span class="pre">expr,</span> <span class="pre">alias</span> <span class="pre">}</span></code></p></li>
-</ul>
-<p>This mainly impacts use of <code class="docutils literal notranslate"><span class="pre">ProjectionExec</span></code>.</p>
-<p>This change was done in <a class="reference external" href="https://github.com/apache/datafusion/pull/17398">#17398</a></p>
-</section>
-<section id="sessionstate-sessionconfig-and-optimizerconfig-returns-arc-configoptions-instead-of-configoptions">
-<h3><code class="docutils literal notranslate"><span class="pre">SessionState</span></code>, <code class="docutils literal notranslate"><span class="pre">SessionConfig</span></code>, and <code class="docutils literal notranslate"><span class="pre">OptimizerConfig</span></code> returns <code class="docutils literal notranslate"><span class="pre">&amp;Arc&lt;ConfigOptions&gt;</span></code> instead of <code class="docutils literal notranslate"><span class="pre">&amp;ConfigOptions</span></co [...]
-<p>To provide broader access to <code class="docutils literal notranslate"><span class="pre">ConfigOptions</span></code> and reduce required clones, some
-APIs have been changed to return a <code class="docutils literal notranslate"><span class="pre">&amp;Arc&lt;ConfigOptions&gt;</span></code> instead of a
-<code class="docutils literal notranslate"><span class="pre">&amp;ConfigOptions</span></code>. This allows sharing the same <code class="docutils literal notranslate"><span class="pre">ConfigOptions</span></code> across multiple
-threads without needing to clone the entire <code class="docutils literal notranslate"><span class="pre">ConfigOptions</span></code> structure unless it
-is modified.</p>
-<p>Most users will not be impacted by this change since the Rust compiler typically
-automatically dereference the <code class="docutils literal notranslate"><span class="pre">Arc</span></code> when needed. However, in some cases you may
-have to change your code to explicitly call <code class="docutils literal notranslate"><span class="pre">as_ref()</span></code> for example, from</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">optimizer_config</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ConfigOptions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="p">.</span><span class="n">options</span><span class="p">();</span>
-</pre></div>
-</div>
-<p>To</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">optimizer_config</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ConfigOptions</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="p">.</span><span class="n">options</span><span class="p">().</span><span class="n">as_ref</spa [...]
-</pre></div>
-</div>
-<p>See PR <a class="reference external" href="https://github.com/apache/datafusion/pull/16970">#16970</a></p>
-</section>
-<section id="api-change-to-asyncscalarudfimpl-invoke-async-with-args">
-<h3>API Change to <code class="docutils literal notranslate"><span class="pre">AsyncScalarUDFImpl::invoke_async_with_args</span></code><a class="headerlink" href="#api-change-to-asyncscalarudfimpl-invoke-async-with-args" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">invoke_async_with_args</span></code> method of the <code class="docutils literal notranslate"><span class="pre">AsyncScalarUDFImpl</span></code> trait has been
-updated to remove the <code class="docutils literal notranslate"><span class="pre">_option:</span> <span class="pre">&amp;ConfigOptions</span></code> parameter to simplify the API
-now that the <code class="docutils literal notranslate"><span class="pre">ConfigOptions</span></code> can be accessed through the <code class="docutils literal notranslate"><span class="pre">ScalarFunctionArgs</span></code>
-parameter.</p>
-<p>You can change your code like this</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">AsyncScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">AskLLM</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">async</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_async_with_args</span><span class="p">(</span>
-<span class="w">        </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">        </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nc">ScalarFunctionArgs</span><span class="p">,</span>
-<span class="w">        </span><span class="n">_option</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">ConfigOptions</span><span class="p">,</span>
-<span class="w">    </span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">ArrayRef</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="o">..</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="w">    </span><span class="o">..</span><span class="p">.</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>To this:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">AsyncScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">AskLLM</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">async</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_async_with_args</span><span class="p">(</span>
-<span class="w">        </span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span>
-<span class="w">        </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nc">ScalarFunctionArgs</span><span class="p">,</span>
-<span class="w">    </span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span><span class="n">ArrayRef</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="kd">let</span><span class="w"> </span><span class="n">options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&amp;</span><span class="n">args</span><span class="p">.</span><span class="n">config_options</span><span class="p">;</span>
-<span class="w">        </span><span class="o">..</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="w">    </span><span class="o">..</span><span class="p">.</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-</section>
-<section id="schema-rewriter-module-moved-to-new-crate">
-<h3>Schema Rewriter Module Moved to New Crate<a class="headerlink" href="#schema-rewriter-module-moved-to-new-crate" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">schema_rewriter</span></code> module and its associated symbols have been moved from <code class="docutils literal notranslate"><span class="pre">datafusion_physical_expr</span></code> to a new crate <code class="docutils literal notranslate"><span class="pre">datafusion_physical_expr_adapter</span></code>. This affects the following symbols:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">DefaultPhysicalExprAdapter</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">DefaultPhysicalExprAdapterFactory</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapter</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code></p></li>
-</ul>
-<p>To upgrade, change your imports to:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_physical_expr_adapter</span><span class="p">::{</span>
-<span class="w">    </span><span class="n">DefaultPhysicalExprAdapter</span><span class="p">,</span><span class="w"> </span><span class="n">DefaultPhysicalExprAdapterFactory</span><span class="p">,</span>
-<span class="w">    </span><span class="n">PhysicalExprAdapter</span><span class="p">,</span><span class="w"> </span><span class="n">PhysicalExprAdapterFactory</span>
-<span class="p">};</span>
-</pre></div>
-</div>
-</section>
-<section id="upgrade-to-arrow-56-0-0-and-parquet-56-0-0">
-<h3>Upgrade to arrow <code class="docutils literal notranslate"><span class="pre">56.0.0</span></code> and parquet <code class="docutils literal notranslate"><span class="pre">56.0.0</span></code><a class="headerlink" href="#upgrade-to-arrow-56-0-0-and-parquet-56-0-0" title="Link to this heading">#</a></h3>
-<p>This version of DataFusion upgrades the underlying Apache Arrow implementation
-to version <code class="docutils literal notranslate"><span class="pre">56.0.0</span></code>. See the <a class="reference external" href="https://github.com/apache/arrow-rs/releases/tag/56.0.0">release notes</a>
-for more details.</p>
-</section>
-<section id="added-executionplan-reset-state">
-<h3>Added <code class="docutils literal notranslate"><span class="pre">ExecutionPlan::reset_state</span></code><a class="headerlink" href="#added-executionplan-reset-state" title="Link to this heading">#</a></h3>
-<p>In order to fix a bug in DataFusion <code class="docutils literal notranslate"><span class="pre">49.0.0</span></code> where dynamic filters (currently only generated in the presence of a query such as <code class="docutils literal notranslate"><span class="pre">ORDER</span> <span class="pre">BY</span> <span class="pre">...</span> <span class="pre">LIMIT</span> <span class="pre">...</span></code>)
-produced incorrect results in recursive queries, a new method <code class="docutils literal notranslate"><span class="pre">reset_state</span></code> has been added to the <code class="docutils literal notranslate"><span class="pre">ExecutionPlan</span></code> trait.</p>
-<p>Any <code class="docutils literal notranslate"><span class="pre">ExecutionPlan</span></code> that needs to maintain internal state or references to other nodes in the execution plan tree should implement this method to reset that state.
-See <a class="reference external" href="https://github.com/apache/datafusion/pull/17028">#17028</a> for more details and an example implementation for <code class="docutils literal notranslate"><span class="pre">SortExec</span></code>.</p>
-</section>
-<section id="nested-loop-join-input-sort-order-cannot-be-preserved">
-<h3>Nested Loop Join input sort order cannot be preserved<a class="headerlink" href="#nested-loop-join-input-sort-order-cannot-be-preserved" title="Link to this heading">#</a></h3>
-<p>The Nested Loop Join operator has been rewritten from scratch to improve performance and memory efficiency. From the micro-benchmarks: this change introduces up to 5X speed-up and uses only 1% memory in extreme cases compared to the previous implementation.</p>
-<p>However, the new implementation cannot preserve input sort order like the old version could. This is a fundamental design trade-off that prioritizes performance and memory efficiency over sort order preservation.</p>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/pull/16996">#16996</a> for details.</p>
-</section>
-<section id="add-as-any-method-to-lazybatchgenerator">
-<h3>Add <code class="docutils literal notranslate"><span class="pre">as_any()</span></code> method to <code class="docutils literal notranslate"><span class="pre">LazyBatchGenerator</span></code><a class="headerlink" href="#add-as-any-method-to-lazybatchgenerator" title="Link to this heading">#</a></h3>
-<p>To help with protobuf serialization, the <code class="docutils literal notranslate"><span class="pre">as_any()</span></code> method has been added to the <code class="docutils literal notranslate"><span class="pre">LazyBatchGenerator</span></code> trait. This means you will need to add <code class="docutils literal notranslate"><span class="pre">as_any()</span></code> to your implementation of <code class="docutils literal notranslate"><span class="pre">LazyBatchGenerator</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">LazyBatchGenerator</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">MyBatchGenerator</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">as_any</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">dyn</span><span class="w"> </span><span class="n">Any</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="bp">self</span>
-<span class="w">    </span><span class="p">}</span>
-
-<span class="w">    </span><span class="o">..</span><span class="p">.</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/pull/17200">#17200</a> for details.</p>
-</section>
-<section id="refactored-datasource-try-swapping-with-projection">
-<h3>Refactored <code class="docutils literal notranslate"><span class="pre">DataSource::try_swapping_with_projection</span></code><a class="headerlink" href="#refactored-datasource-try-swapping-with-projection" title="Link to this heading">#</a></h3>
-<p>We refactored <code class="docutils literal notranslate"><span class="pre">DataSource::try_swapping_with_projection</span></code> to simplify the method and minimize leakage across the ExecutionPlan &lt;-&gt; DataSource abstraction layer.
-Reimplementation for any custom <code class="docutils literal notranslate"><span class="pre">DataSource</span></code> should be relatively straightforward, see <a class="reference external" href="https://github.com/apache/datafusion/pull/17395/">#17395</a> for more details.</p>
-</section>
-<section id="fileopenfuture-now-uses-datafusionerror-instead-of-arrowerror">
-<h3><code class="docutils literal notranslate"><span class="pre">FileOpenFuture</span></code> now uses <code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code> instead of <code class="docutils literal notranslate"><span class="pre">ArrowError</span></code><a class="headerlink" href="#fileopenfuture-now-uses-datafusionerror-instead-of-arrowerror" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">FileOpenFuture</span></code> type alias has been updated to use <code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code> instead of <code class="docutils literal notranslate"><span class="pre">ArrowError</span></code> for its error type. This change affects the <code class="docutils literal notranslate"><span class="pre">FileOpener</span></code> trait and any implementations that work wi [...]
-<p><strong>Before:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">pub</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="nc">FileOpenFuture</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">BoxFuture</span><span class="o">&lt;&#39;</span><span class="nb">static</span><span class="p">,</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span>< [...]
-</pre></div>
-</div>
-<p><strong>After:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">pub</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="nc">FileOpenFuture</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">BoxFuture</span><span class="o">&lt;&#39;</span><span class="nb">static</span><span class="p">,</span><span class="w"> </span><span class="nb">Result</span><span class="o">&lt;</span>< [...]
-</pre></div>
-</div>
-<p>If you have custom implementations of <code class="docutils literal notranslate"><span class="pre">FileOpener</span></code> or work directly with <code class="docutils literal notranslate"><span class="pre">FileOpenFuture</span></code>, you’ll need to update your error handling to use <code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code> instead of <code class="docutils literal notranslate"><span class="pre">ArrowError</span></code>. The <code clas [...]
-</section>
-<section id="ffi-user-defined-aggregate-function-signature-change">
-<h3>FFI user defined aggregate function signature change<a class="headerlink" href="#ffi-user-defined-aggregate-function-signature-change" title="Link to this heading">#</a></h3>
-<p>The Foreign Function Interface (FFI) signature for user defined aggregate functions
-has been updated to call <code class="docutils literal notranslate"><span class="pre">return_field</span></code> instead of <code class="docutils literal notranslate"><span class="pre">return_type</span></code> on the underlying
-aggregate function. This is to support metadata handling with these aggregate functions.
-This change should be transparent to most users. If you have written unit tests to call
-<code class="docutils literal notranslate"><span class="pre">return_type</span></code> directly, you may need to change them to calling <code class="docutils literal notranslate"><span class="pre">return_field</span></code> instead.</p>
-<p>This update is a breaking change to the FFI API. The current best practice when using the
-FFI crate is to ensure that all libraries that are interacting are using the same
-underlying Rust version. Issue <a class="reference external" href="https://github.com/apache/datafusion/issues/17374">#17374</a> has been opened to discuss stabilization of
-this interface so that these libraries can be used across different DataFusion versions.</p>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/pull/17407">#17407</a> for details.</p>
-</section>
-<section id="added-physicalexpr-is-volatile-node">
-<h3>Added <code class="docutils literal notranslate"><span class="pre">PhysicalExpr::is_volatile_node</span></code><a class="headerlink" href="#added-physicalexpr-is-volatile-node" title="Link to this heading">#</a></h3>
-<p>We added a method to <code class="docutils literal notranslate"><span class="pre">PhysicalExpr</span></code> to mark a <code class="docutils literal notranslate"><span class="pre">PhysicalExpr</span></code> as volatile:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">PhysicalExpr</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">MyRandomExpr</span><span class="w"> </span><span class="p">{</span>
-<span class="w">  </span><span class="k">fn</span><span class="w"> </span><span class="nf">is_volatile_node</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="kc">true</span>
-<span class="w">  </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>We’ve shipped this with a default value of <code class="docutils literal notranslate"><span class="pre">false</span></code> to minimize breakage but we highly recommend that implementers of <code class="docutils literal notranslate"><span class="pre">PhysicalExpr</span></code> opt into a behavior, even if it is returning <code class="docutils literal notranslate"><span class="pre">false</span></code>.</p>
-<p>You can see more discussion and example implementations in <a class="reference external" href="https://github.com/apache/datafusion/pull/17351">#17351</a>.</p>
-</section>
-</section>
-<section id="datafusion-49-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">49.0.0</span></code><a class="headerlink" href="#datafusion-49-0-0" title="Link to this heading">#</a></h2>
-<section id="msrv-updated-to-1-85-1">
-<h3><code class="docutils literal notranslate"><span class="pre">MSRV</span></code> updated to 1.85.1<a class="headerlink" href="#msrv-updated-to-1-85-1" title="Link to this heading">#</a></h3>
-<p>The Minimum Supported Rust Version (MSRV) has been updated to <a class="reference external" href="https://releases.rs/docs/1.85.1/"><code class="docutils literal notranslate"><span class="pre">1.85.1</span></code></a>. See
-<a class="reference external" href="https://github.com/apache/datafusion/pull/16728">#16728</a> for details.</p>
-</section>
-<section id="datafusionerror-variants-are-now-boxed">
-<h3><code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code> variants are now <code class="docutils literal notranslate"><span class="pre">Box</span></code>ed<a class="headerlink" href="#datafusionerror-variants-are-now-boxed" title="Link to this heading">#</a></h3>
-<p>To reduce the size of <code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code>, several variants that were previously stored inline are now <code class="docutils literal notranslate"><span class="pre">Box</span></code>ed. This reduces the size of <code class="docutils literal notranslate"><span class="pre">Result&lt;T,</span> <span class="pre">DataFusionError&gt;</span></code> and thus stack usage and async state machine size. Please see <a class="ref [...]
-<p>The following variants of <code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code> are now boxed:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">ArrowError</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">SQL</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">SchemaError</span></code></p></li>
-</ul>
-<p>This is a breaking change. Code that constructs or matches on these variants will need to be updated.</p>
-<p>For example, to create a <code class="docutils literal notranslate"><span class="pre">SchemaError</span></code>, instead of:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_common</span><span class="p">::{</span><span class="n">DataFusionError</span><span class="p">,</span><span class="w"> </span><span class="n">SchemaError</span><span class="p">};</span>
-<span class="n">DataFusionError</span><span class="p">::</span><span class="n">SchemaError</span><span class="p">(</span>
-<span class="w">  </span><span class="n">SchemaError</span><span class="p">::</span><span class="n">DuplicateUnqualifiedField</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">name</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;foo&quot;</span><span class="p">.</span><span class="n">to_string</span><span class="p">()</span><span class="w"> </span><span class="p">},</span>
-<span class="w">  </span><span class="nb">Box</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="nb">None</span><span class="p">)</span>
-<span class="p">)</span>
-</pre></div>
-</div>
-<p>You now need to <code class="docutils literal notranslate"><span class="pre">Box</span></code> the inner error:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion_common</span><span class="p">::{</span><span class="n">DataFusionError</span><span class="p">,</span><span class="w"> </span><span class="n">SchemaError</span><span class="p">};</span>
-<span class="n">DataFusionError</span><span class="p">::</span><span class="n">SchemaError</span><span class="p">(</span>
-<span class="w">  </span><span class="nb">Box</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">SchemaError</span><span class="p">::</span><span class="n">DuplicateUnqualifiedField</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">name</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;foo&quot;</span><span class="p">.</span><span class="n">to_string</span><span class="p">( [...]
-<span class="w">  </span><span class="nb">Box</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="nb">None</span><span class="p">)</span>
-<span class="p">)</span>
-</pre></div>
-</div>
-</section>
-<section id="metadata-on-arrow-types-is-now-represented-by-fieldmetadata">
-<h3>Metadata on Arrow Types is now represented by <code class="docutils literal notranslate"><span class="pre">FieldMetadata</span></code><a class="headerlink" href="#metadata-on-arrow-types-is-now-represented-by-fieldmetadata" title="Link to this heading">#</a></h3>
-<p>Metadata from the Arrow <code class="docutils literal notranslate"><span class="pre">Field</span></code> is now stored using the <code class="docutils literal notranslate"><span class="pre">FieldMetadata</span></code>
-structure. In prior versions it was stored as both a <code class="docutils literal notranslate"><span class="pre">HashMap&lt;String,</span> <span class="pre">String&gt;</span></code>
-and a <code class="docutils literal notranslate"><span class="pre">BTreeMap&lt;String,</span> <span class="pre">String&gt;</span></code>. <code class="docutils literal notranslate"><span class="pre">FieldMetadata</span></code> is a easier to work with and
-is more efficient.</p>
-<p>To create <code class="docutils literal notranslate"><span class="pre">FieldMetadata</span></code> from a <code class="docutils literal notranslate"><span class="pre">Field</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="n">metadata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FieldMetadata</span><span class="p">::</span><span class="n">from</span><span class="p">(</span><span class="o">&amp;</span><span class="n">field</span><span class="p">);</span>
-</pre></div>
-</div>
-<p>To add metadata to a <code class="docutils literal notranslate"><span class="pre">Field</span></code>, use the <code class="docutils literal notranslate"><span class="pre">add_to_field</span></code> method:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">updated_field</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">metadata</span><span class="p">.</span><span class="n">add_to_field</span><span class="p">(</span><span class="n">field</span><span class="p">);</span>
-</pre></div>
-</div>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/pull/16317">#16317</a> for details.</p>
-</section>
-<section id="new-datafusion-execution-spill-compression-configuration-option">
-<h3>New <code class="docutils literal notranslate"><span class="pre">datafusion.execution.spill_compression</span></code> configuration option<a class="headerlink" href="#new-datafusion-execution-spill-compression-configuration-option" title="Link to this heading">#</a></h3>
-<p>DataFusion 49.0.0 adds support for compressing spill files when data is written to disk during spilling query execution. A new configuration option <code class="docutils literal notranslate"><span class="pre">datafusion.execution.spill_compression</span></code> controls the compression codec used.</p>
-<p><strong>Configuration:</strong></p>
-<ul class="simple">
-<li><p><strong>Key</strong>: <code class="docutils literal notranslate"><span class="pre">datafusion.execution.spill_compression</span></code></p></li>
-<li><p><strong>Default</strong>: <code class="docutils literal notranslate"><span class="pre">uncompressed</span></code></p></li>
-<li><p><strong>Valid values</strong>: <code class="docutils literal notranslate"><span class="pre">uncompressed</span></code>, <code class="docutils literal notranslate"><span class="pre">lz4_frame</span></code>, <code class="docutils literal notranslate"><span class="pre">zstd</span></code></p></li>
-</ul>
-<p><strong>Usage:</strong></p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">use</span><span class="w"> </span><span class="n">datafusion</span><span class="p">::</span><span class="n">prelude</span><span class="p">::</span><span class="o">*</span><span class="p">;</span>
-<span class="k">use</span><span class="w"> </span><span class="n">datafusion_common</span><span class="p">::</span><span class="n">config</span><span class="p">::</span><span class="n">SpillCompression</span><span class="p">;</span>
-
-<span class="kd">let</span><span class="w"> </span><span class="n">config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SessionConfig</span><span class="p">::</span><span class="n">default</span><span class="p">()</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_spill_compression</span><span class="p">(</span><span class="n">SpillCompression</span><span class="p">::</span><span class="n">Zstd</span><span class="p">);</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SessionContext</span><span class="p">::</span><span class="n">new_with_config</span><span class="p">(</span><span class="n">config</span><span class="p">);</span>
-</pre></div>
-</div>
-<p>Or via SQL:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="k">SET</span><span class="w"> </span><span class="n">datafusion</span><span class="p">.</span><span class="n">execution</span><span class="p">.</span><span class="n">spill_compression</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">&#39;zstd&#39;</span><span class="p">;</span>
-</pre></div>
-</div>
-<p>For more details about this configuration option, including performance trade-offs between different compression codecs, see the <a class="reference internal" href="../user-guide/configs.html"><span class="std std-doc">Configuration Settings</span></a> documentation.</p>
-</section>
-<section id="deprecated-map-varchar-to-utf8view-configuration-option">
-<h3>Deprecated <code class="docutils literal notranslate"><span class="pre">map_varchar_to_utf8view</span></code> configuration option<a class="headerlink" href="#deprecated-map-varchar-to-utf8view-configuration-option" title="Link to this heading">#</a></h3>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/pull/16290">issue #16290</a> for more information
-The old configuration</p>
-<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>datafusion.sql_parser.map_varchar_to_utf8view
-</pre></div>
-</div>
-<p>is now <strong>deprecated</strong> in favor of the unified option below.<br />
-If you previously used this to control only <code class="docutils literal notranslate"><span class="pre">VARCHAR</span></code>→<code class="docutils literal notranslate"><span class="pre">Utf8View</span></code> mapping, please migrate to <code class="docutils literal notranslate"><span class="pre">map_string_types_to_utf8view</span></code>.</p>
-</section>
-<hr class="docutils" />
-<section id="new-map-string-types-to-utf8view-configuration-option">
-<h3>New <code class="docutils literal notranslate"><span class="pre">map_string_types_to_utf8view</span></code> configuration option<a class="headerlink" href="#new-map-string-types-to-utf8view-configuration-option" title="Link to this heading">#</a></h3>
-<p>To unify <strong>all</strong> SQL string types (<code class="docutils literal notranslate"><span class="pre">CHAR</span></code>, <code class="docutils literal notranslate"><span class="pre">VARCHAR</span></code>, <code class="docutils literal notranslate"><span class="pre">TEXT</span></code>, <code class="docutils literal notranslate"><span class="pre">STRING</span></code>) to Arrow’s zero‑copy <code class="docutils literal notranslate"><span class="pre">Utf8View</span></code>, DataFu [...]
-<ul class="simple">
-<li><p><strong>Key</strong>: <code class="docutils literal notranslate"><span class="pre">datafusion.sql_parser.map_string_types_to_utf8view</span></code></p></li>
-<li><p><strong>Default</strong>: <code class="docutils literal notranslate"><span class="pre">true</span></code></p></li>
-</ul>
-<p><strong>Description:</strong></p>
-<ul class="simple">
-<li><p>When <strong>true</strong> (default), <strong>all</strong> SQL string types are mapped to <code class="docutils literal notranslate"><span class="pre">Utf8View</span></code>, avoiding full‑copy UTF‑8 allocations and improving performance.</p></li>
-<li><p>When <strong>false</strong>, DataFusion falls back to the legacy <code class="docutils literal notranslate"><span class="pre">Utf8</span></code> mapping for <strong>all</strong> string types.</p></li>
-</ul>
-<section id="examples">
-<h4>Examples<a class="headerlink" href="#examples" title="Link to this heading">#</a></h4>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="c1">// Disable Utf8View mapping for all SQL string types</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">opts</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">datafusion</span><span class="p">::</span><span class="n">sql</span><span class="p">::</span><span class="n">planner</span><span class="p">::</span><span class="n">ParserOptions</span><span class="p">::</span><span class="n">new</span><span class="p">()</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_map_string_types_to_utf8view</span><span class="p">(</span><span class="kc">false</span><span class="p">);</span>
-
-<span class="c1">// Verify the setting is applied</span>
-<span class="fm">assert!</span><span class="p">(</span><span class="o">!</span><span class="n">opts</span><span class="p">.</span><span class="n">map_string_types_to_utf8view</span><span class="p">);</span>
-</pre></div>
-</div>
-<hr class="docutils" />
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="c1">-- Disable Utf8View mapping globally</span>
-<span class="k">SET</span><span class="w"> </span><span class="n">datafusion</span><span class="p">.</span><span class="n">sql_parser</span><span class="p">.</span><span class="n">map_string_types_to_utf8view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">false</span><span class="p">;</span>
-
-<span class="c1">-- Now VARCHAR, CHAR, TEXT, STRING all use Utf8 rather than Utf8View</span>
-<span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">my_table</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="w"> </span><span class="nb">VARCHAR</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="nb">TEXT</span><span class="p">,</span><span class="w"> </span><span class="k">c</span><span class="w"> </span><span cla [...]
-<span class="k">DESCRIBE</span><span class="w"> </span><span class="n">my_table</span><span class="p">;</span>
-</pre></div>
-</div>
-</section>
-</section>
-<section id="deprecating-schemaadapterfactory-and-schemaadapter">
-<h3>Deprecating <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> and <code class="docutils literal notranslate"><span class="pre">SchemaAdapter</span></code><a class="headerlink" href="#deprecating-schemaadapterfactory-and-schemaadapter" title="Link to this heading">#</a></h3>
-<p>We are moving away from converting data (using <code class="docutils literal notranslate"><span class="pre">SchemaAdapter</span></code>) to converting the expressions themselves (which is more efficient and flexible).</p>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/issues/16800">issue #16800</a> for more information
-The first place this change has taken place is in predicate pushdown for Parquet.
-By default if you do not use a custom <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> we will use expression conversion instead.
-If you do set a custom <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> we will continue to use it but emit a warning about that code path being deprecated.</p>
-<p>To resolve this you need to implement a custom <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code> and use that instead of a <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code>.
-See the <a class="reference external" href="https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/custom_data_source/default_column_values.rs">default values</a> for an example of how to do this.
-Opting into the new APIs will set you up for future changes since we plan to expand use of <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapterFactory</span></code> to other areas of DataFusion.</p>
-<p>See <a class="reference external" href="https://github.com/apache/datafusion/issues/16800">#16800</a> for details.</p>
-</section>
-<section id="tableparquetoptions-updated">
-<h3><code class="docutils literal notranslate"><span class="pre">TableParquetOptions</span></code> Updated<a class="headerlink" href="#tableparquetoptions-updated" title="Link to this heading">#</a></h3>
-<p>The <code class="docutils literal notranslate"><span class="pre">TableParquetOptions</span></code> struct has a new <code class="docutils literal notranslate"><span class="pre">crypto</span></code> field to specify encryption
-options for Parquet files. The <code class="docutils literal notranslate"><span class="pre">ParquetEncryptionOptions</span></code> implements <code class="docutils literal notranslate"><span class="pre">Default</span></code>
-so you can upgrade your existing code like this:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TableParquetOptions</span><span class="w"> </span><span class="p">{</span>
-<span class="w">  </span><span class="n">global</span><span class="p">,</span>
-<span class="w">  </span><span class="n">column_specific_options</span><span class="p">,</span>
-<span class="w">  </span><span class="n">key_value_metadata</span><span class="p">,</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>To this:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TableParquetOptions</span><span class="w"> </span><span class="p">{</span>
-<span class="w">  </span><span class="n">global</span><span class="p">,</span>
-<span class="w">  </span><span class="n">column_specific_options</span><span class="p">,</span>
-<span class="w">  </span><span class="n">key_value_metadata</span><span class="p">,</span>
-<span class="w">  </span><span class="n">crypto</span><span class="p">:</span><span class="w"> </span><span class="nb">Default</span><span class="p">::</span><span class="n">default</span><span class="p">(),</span><span class="w"> </span><span class="c1">// New crypto field</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-</section>
-</section>
-<section id="datafusion-48-0-1">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">48.0.1</span></code><a class="headerlink" href="#datafusion-48-0-1" title="Link to this heading">#</a></h2>
-<section id="datafusion-execution-collect-statistics-now-defaults-to-true">
-<h3><code class="docutils literal notranslate"><span class="pre">datafusion.execution.collect_statistics</span></code> now defaults to <code class="docutils literal notranslate"><span class="pre">true</span></code><a class="headerlink" href="#datafusion-execution-collect-statistics-now-defaults-to-true" title="Link to this heading">#</a></h3>
-<p>The default value of the <code class="docutils literal notranslate"><span class="pre">datafusion.execution.collect_statistics</span></code> configuration
-setting is now true. This change impacts users that use that value directly and relied
-on its default value being <code class="docutils literal notranslate"><span class="pre">false</span></code>.</p>
-<p>This change also restores the default behavior of <code class="docutils literal notranslate"><span class="pre">ListingTable</span></code> to its previous. If you use it directly
-you can maintain the current behavior by overriding the default value in your code.</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">ListingOptions</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">ParquetFormat</span><span class="p">::</span><span class="n">default</span><span class="p">()))</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_collect_stat</span><span class="p">(</span><span class="kc">false</span><span class="p">)</span>
-<span class="w">    </span><span class="c1">// other options</span>
-</pre></div>
-</div>
-</section>
-</section>
-<section id="datafusion-48-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">48.0.0</span></code><a class="headerlink" href="#datafusion-48-0-0" title="Link to this heading">#</a></h2>
-<section id="expr-literal-has-optional-metadata">
-<h3><code class="docutils literal notranslate"><span class="pre">Expr::Literal</span></code> has optional metadata<a class="headerlink" href="#expr-literal-has-optional-metadata" title="Link to this heading">#</a></h3>
-<p>The <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/enum.Expr.html#variant.Literal"><code class="docutils literal notranslate"><span class="pre">Expr::Literal</span></code></a> variant now includes optional metadata, which allows for
-carrying through Arrow field metadata to support extension types and other uses.</p>
-<p>This means code such as</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">match</span><span class="w"> </span><span class="n">expr</span><span class="w"> </span><span class="p">{</span>
-<span class="o">..</span><span class="p">.</span>
-<span class="w">  </span><span class="n">Expr</span><span class="p">::</span><span class="n">Literal</span><span class="p">(</span><span class="n">scalar</span><span class="p">)</span><span class="w"> </span><span class="o">=&gt;</span><span class="w"> </span><span class="o">..</span><span class="p">.</span>
-<span class="o">..</span><span class="p">.</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>Should be updated to:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">match</span><span class="w"> </span><span class="n">expr</span><span class="w"> </span><span class="p">{</span>
-<span class="o">..</span><span class="p">.</span>
-<span class="w">  </span><span class="n">Expr</span><span class="p">::</span><span class="n">Literal</span><span class="p">(</span><span class="n">scalar</span><span class="p">,</span><span class="w"> </span><span class="n">_metadata</span><span class="p">)</span><span class="w"> </span><span class="o">=&gt;</span><span class="w"> </span><span class="o">..</span><span class="p">.</span>
-<span class="o">..</span><span class="p">.</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>Likewise constructing <code class="docutils literal notranslate"><span class="pre">Expr::Literal</span></code> requires metadata as well. The <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/fn.lit.html"><code class="docutils literal notranslate"><span class="pre">lit</span></code></a> function
-has not changed and returns an <code class="docutils literal notranslate"><span class="pre">Expr::Literal</span></code> with no metadata.</p>
-</section>
-<section id="expr-windowfunction-is-now-boxed">
-<h3><code class="docutils literal notranslate"><span class="pre">Expr::WindowFunction</span></code> is now <code class="docutils literal notranslate"><span class="pre">Box</span></code>ed<a class="headerlink" href="#expr-windowfunction-is-now-boxed" title="Link to this heading">#</a></h3>
-<p><code class="docutils literal notranslate"><span class="pre">Expr::WindowFunction</span></code> is now a <code class="docutils literal notranslate"><span class="pre">Box&lt;WindowFunction&gt;</span></code> instead of a <code class="docutils literal notranslate"><span class="pre">WindowFunction</span></code> directly.
-This change was made to reduce the size of <code class="docutils literal notranslate"><span class="pre">Expr</span></code> and improve performance when
-planning queries (see <a class="reference external" href="https://github.com/apache/datafusion/pull/16207#issuecomment-2922659103">details on #16207</a>).</p>
-<p>This is a breaking change, so you will need to update your code if you match
-on <code class="docutils literal notranslate"><span class="pre">Expr::WindowFunction</span></code> directly. For example, if you have code like this:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">match</span><span class="w"> </span><span class="n">expr</span><span class="w"> </span><span class="p">{</span>
-<span class="w">  </span><span class="n">Expr</span><span class="p">::</span><span class="n">WindowFunction</span><span class="p">(</span><span class="n">WindowFunction</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">params</span><span class="p">:</span>
-<span class="w">      </span><span class="nc">WindowFunctionParams</span><span class="w"> </span><span class="p">{</span>
-<span class="w">       </span><span class="n">partition_by</span><span class="p">,</span>
-<span class="w">       </span><span class="n">order_by</span><span class="p">,</span>
-<span class="w">      </span><span class="o">..</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="w">  </span><span class="p">})</span><span class="w"> </span><span class="o">=&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="c1">// Use partition_by and order_by as needed</span>
-<span class="w">  </span><span class="p">}</span>
-<span class="w">  </span><span class="n">_</span><span class="w"> </span><span class="o">=&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="c1">// other expr</span>
-<span class="w">  </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>You will need to change it to:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">match</span><span class="w"> </span><span class="n">expr</span><span class="w"> </span><span class="p">{</span>
-<span class="w">  </span><span class="n">Expr</span><span class="p">::</span><span class="n">WindowFunction</span><span class="p">(</span><span class="n">window_fun</span><span class="p">)</span><span class="w"> </span><span class="o">=&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">WindowFunction</span><span class="w"> </span><span class="p">{</span>
-<span class="w">      </span><span class="n">fun</span><span class="p">,</span>
-<span class="w">      </span><span class="n">params</span><span class="p">:</span><span class="w"> </span><span class="nc">WindowFunctionParams</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="n">args</span><span class="p">,</span>
-<span class="w">        </span><span class="n">partition_by</span><span class="p">,</span>
-<span class="w">        </span><span class="o">..</span>
-<span class="w">        </span><span class="p">},</span>
-<span class="w">    </span><span class="p">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window_fun</span><span class="p">.</span><span class="n">as_ref</span><span class="p">();</span>
-<span class="w">    </span><span class="c1">// Use partition_by and order_by as needed</span>
-<span class="w">  </span><span class="p">}</span>
-<span class="w">  </span><span class="n">_</span><span class="w"> </span><span class="o">=&gt;</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="c1">// other expr</span>
-<span class="w">  </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-</section>
-<section id="the-varchar-sql-type-is-now-represented-as-utf8view-in-arrow">
-<h3>The <code class="docutils literal notranslate"><span class="pre">VARCHAR</span></code> SQL type is now represented as <code class="docutils literal notranslate"><span class="pre">Utf8View</span></code> in Arrow<a class="headerlink" href="#the-varchar-sql-type-is-now-represented-as-utf8view-in-arrow" title="Link to this heading">#</a></h3>
-<p>The mapping of the SQL <code class="docutils literal notranslate"><span class="pre">VARCHAR</span></code> type has been changed from <code class="docutils literal notranslate"><span class="pre">Utf8</span></code> to <code class="docutils literal notranslate"><span class="pre">Utf8View</span></code>
-which improves performance for many string operations. You can read more about
-<code class="docutils literal notranslate"><span class="pre">Utf8View</span></code> in the <a class="reference external" href="https://datafusion.apache.org/blog/2024/09/13/string-view-german-style-strings-part-1/">DataFusion blog post on German-style strings</a></p>
-<p>This means that when you create a table with a <code class="docutils literal notranslate"><span class="pre">VARCHAR</span></code> column, it will now use
-<code class="docutils literal notranslate"><span class="pre">Utf8View</span></code> as the underlying data type. For example:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">my_table</span><span class="w"> </span><span class="p">(</span><span class="n">my_column</span><span class="w"> </span><span class="nb">VARCHAR</span><span class="p">);</span>
-<span class="mi">0</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-<span class="n">Elapsed</span><span class="w"> </span><span class="mi">0</span><span class="p">.</span><span class="mi">001</span><span class="w"> </span><span class="n">seconds</span><span class="p">.</span>
-
-<span class="o">&gt;</span><span class="w"> </span><span class="k">DESCRIBE</span><span class="w"> </span><span class="n">my_table</span><span class="p">;</span>
-<span class="o">+</span><span class="c1">-------------+-----------+-------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="k">column_name</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">data_type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">is_nullable</span><span class="w"> </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">-------------+-----------+-------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">my_column</span><span class="w">   </span><span class="o">|</span><span class="w"> </span><span class="n">Utf8View</span><span class="w">  </span><span class="o">|</span><span class="w"> </span><span class="n">YES</span><span class="w">         </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">-------------+-----------+-------------+</span>
-<span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-<span class="n">Elapsed</span><span class="w"> </span><span class="mi">0</span><span class="p">.</span><span class="mi">000</span><span class="w"> </span><span class="n">seconds</span><span class="p">.</span>
-</pre></div>
-</div>
-<p>You can restore the old behavior of using <code class="docutils literal notranslate"><span class="pre">Utf8</span></code> by changing the
-<code class="docutils literal notranslate"><span class="pre">datafusion.sql_parser.map_varchar_to_utf8view</span></code> configuration setting. For
-example</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">set</span><span class="w"> </span><span class="n">datafusion</span><span class="p">.</span><span class="n">sql_parser</span><span class="p">.</span><span class="n">map_varchar_to_utf8view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">false</span><span class="p">;</span>
-<span class="mi">0</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-<span class="n">Elapsed</span><span class="w"> </span><span class="mi">0</span><span class="p">.</span><span class="mi">001</span><span class="w"> </span><span class="n">seconds</span><span class="p">.</span>
-
-<span class="o">&gt;</span><span class="w"> </span><span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">my_table</span><span class="w"> </span><span class="p">(</span><span class="n">my_column</span><span class="w"> </span><span class="nb">VARCHAR</span><span class="p">);</span>
-<span class="mi">0</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-<span class="n">Elapsed</span><span class="w"> </span><span class="mi">0</span><span class="p">.</span><span class="mi">014</span><span class="w"> </span><span class="n">seconds</span><span class="p">.</span>
-
-<span class="o">&gt;</span><span class="w"> </span><span class="k">DESCRIBE</span><span class="w"> </span><span class="n">my_table</span><span class="p">;</span>
-<span class="o">+</span><span class="c1">-------------+-----------+-------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="k">column_name</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">data_type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">is_nullable</span><span class="w"> </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">-------------+-----------+-------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">my_column</span><span class="w">   </span><span class="o">|</span><span class="w"> </span><span class="n">Utf8</span><span class="w">      </span><span class="o">|</span><span class="w"> </span><span class="n">YES</span><span class="w">         </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">-------------+-----------+-------------+</span>
-<span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-<span class="n">Elapsed</span><span class="w"> </span><span class="mi">0</span><span class="p">.</span><span class="mi">004</span><span class="w"> </span><span class="n">seconds</span><span class="p">.</span>
-</pre></div>
-</div>
-</section>
-<section id="listingoptions-default-for-collect-stat-changed-from-true-to-false">
-<h3><code class="docutils literal notranslate"><span class="pre">ListingOptions</span></code> default for <code class="docutils literal notranslate"><span class="pre">collect_stat</span></code> changed from <code class="docutils literal notranslate"><span class="pre">true</span></code> to <code class="docutils literal notranslate"><span class="pre">false</span></code><a class="headerlink" href="#listingoptions-default-for-collect-stat-changed-from-true-to-false" title="Link to this headi [...]
-<p>This makes it agree with the default for <code class="docutils literal notranslate"><span class="pre">SessionConfig</span></code>.
-Most users won’t be impacted by this change but if you were using <code class="docutils literal notranslate"><span class="pre">ListingOptions</span></code> directly
-and relied on the default value of <code class="docutils literal notranslate"><span class="pre">collect_stat</span></code> being <code class="docutils literal notranslate"><span class="pre">true</span></code>, you will need to
-explicitly set it to <code class="docutils literal notranslate"><span class="pre">true</span></code> in your code.</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">ListingOptions</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">ParquetFormat</span><span class="p">::</span><span class="n">default</span><span class="p">()))</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_collect_stat</span><span class="p">(</span><span class="kc">true</span><span class="p">)</span>
-<span class="w">    </span><span class="c1">// other options</span>
-</pre></div>
-</div>
-</section>
-<section id="processing-fieldref-instead-of-datatype-for-user-defined-functions">
-<h3>Processing <code class="docutils literal notranslate"><span class="pre">FieldRef</span></code> instead of <code class="docutils literal notranslate"><span class="pre">DataType</span></code> for user defined functions<a class="headerlink" href="#processing-fieldref-instead-of-datatype-for-user-defined-functions" title="Link to this heading">#</a></h3>
-<p>In order to support metadata handling and extension types, user defined functions are
-now switching to traits which use <code class="docutils literal notranslate"><span class="pre">FieldRef</span></code> rather than a <code class="docutils literal notranslate"><span class="pre">DataType</span></code> and nullability.
-This gives a single interface to both of these parameters and additionally allows
-access to metadata fields, which can be used for extension types.</p>
-<p>To upgrade structs which implement <code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl</span></code>, if you have implemented
-<code class="docutils literal notranslate"><span class="pre">return_type_from_args</span></code> you need instead to implement <code class="docutils literal notranslate"><span class="pre">return_field_from_args</span></code>.
-If your functions do not need to handle metadata, this should be straightforward
-repackaging of the output data into a <code class="docutils literal notranslate"><span class="pre">FieldRef</span></code>. The name you specify on the
-field is not important. It will be overwritten during planning. <code class="docutils literal notranslate"><span class="pre">ReturnInfo</span></code>
-has been removed, so you will need to remove all references to it.</p>
-<p><code class="docutils literal notranslate"><span class="pre">ScalarFunctionArgs</span></code> now contains a field called <code class="docutils literal notranslate"><span class="pre">arg_fields</span></code>. You can use this
-to access the metadata associated with the columnar values during invocation.</p>
-<p>To upgrade user defined aggregate functions, there is now a function
-<code class="docutils literal notranslate"><span class="pre">return_field</span></code> that will allow you to specify both metadata and nullability of
-your function. You are not required to implement this if you do not need to
-handle metadata.</p>
-<p>The largest change to aggregate functions happens in the accumulator arguments.
-Both the <code class="docutils literal notranslate"><span class="pre">AccumulatorArgs</span></code> and <code class="docutils literal notranslate"><span class="pre">StateFieldsArgs</span></code> now contain <code class="docutils literal notranslate"><span class="pre">FieldRef</span></code> rather
-than <code class="docutils literal notranslate"><span class="pre">DataType</span></code>.</p>
-<p>To upgrade window functions, <code class="docutils literal notranslate"><span class="pre">ExpressionArgs</span></code> now contains input fields instead
-of input data types. When setting these fields, the name of the field is
-not important since this gets overwritten during the planning stage. All you
-should need to do is wrap your existing data types in fields with nullability
-set depending on your use case.</p>
-</section>
-<section id="physical-expression-return-field">
-<h3>Physical Expression return <code class="docutils literal notranslate"><span class="pre">Field</span></code><a class="headerlink" href="#physical-expression-return-field" title="Link to this heading">#</a></h3>
-<p>To support the changes to user defined functions processing metadata, the
-<code class="docutils literal notranslate"><span class="pre">PhysicalExpr</span></code> trait, which now must specify a return <code class="docutils literal notranslate"><span class="pre">Field</span></code> based on the input
-schema. To upgrade structs which implement <code class="docutils literal notranslate"><span class="pre">PhysicalExpr</span></code> you need to implement
-the <code class="docutils literal notranslate"><span class="pre">return_field</span></code> function. There are numerous examples in the <code class="docutils literal notranslate"><span class="pre">physical-expr</span></code>
-crate.</p>
-</section>
-<section id="fileformat-supports-filters-pushdown-replaced-with-filesource-try-pushdown-filters">
-<h3><code class="docutils literal notranslate"><span class="pre">FileFormat::supports_filters_pushdown</span></code> replaced with <code class="docutils literal notranslate"><span class="pre">FileSource::try_pushdown_filters</span></code><a class="headerlink" href="#fileformat-supports-filters-pushdown-replaced-with-filesource-try-pushdown-filters" title="Link to this heading">#</a></h3>
-<p>To support more general filter pushdown, the <code class="docutils literal notranslate"><span class="pre">FileFormat::supports_filters_pushdown</span></code> was replaced with
-<code class="docutils literal notranslate"><span class="pre">FileSource::try_pushdown_filters</span></code>.
-If you implemented a custom <code class="docutils literal notranslate"><span class="pre">FileFormat</span></code> that uses a custom <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> you will need to implement
-<code class="docutils literal notranslate"><span class="pre">FileSource::try_pushdown_filters</span></code>.
-See <code class="docutils literal notranslate"><span class="pre">ParquetSource::try_pushdown_filters</span></code> for an example of how to implement this.</p>
-<p><code class="docutils literal notranslate"><span class="pre">FileFormat::supports_filters_pushdown</span></code> has been removed.</p>
-</section>
-<section id="parquetexec-avroexec-csvexec-jsonexec-removed">
-<h3><code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroExec</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvExec</span></code>, <code class="docutils literal notranslate"><span class="pre">JsonExec</span></code> Removed<a class="headerlink" href="#parquetexec-avroexec-csvexec-jsonexec-removed" title="Link to this heading">#</a></h3>
-<p><code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroExec</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvExec</span></code>, and <code class="docutils literal notranslate"><span class="pre">JsonExec</span></code> were deprecated in
-DataFusion 46 and are removed in DataFusion 48. This is sooner than the normal
-process described in the <a class="reference external" href="https://datafusion.apache.org/contributor-guide/api-health.html#deprecation-guidelines">API Deprecation Guidelines</a> because all the tests
-cover the new <code class="docutils literal notranslate"><span class="pre">DataSourceExec</span></code> rather than the older structures. As we evolve
-<code class="docutils literal notranslate"><span class="pre">DataSource</span></code>, the old structures began to show signs of “bit rotting” (not
-working but no one knows due to lack of test coverage).</p>
-</section>
-<section id="partitionedfile-added-as-an-argument-to-the-fileopener-trait">
-<h3><code class="docutils literal notranslate"><span class="pre">PartitionedFile</span></code> added as an argument to the <code class="docutils literal notranslate"><span class="pre">FileOpener</span></code> trait<a class="headerlink" href="#partitionedfile-added-as-an-argument-to-the-fileopener-trait" title="Link to this heading">#</a></h3>
-<p>This is necessary to properly fix filter pushdown for filters that combine partition
-columns and file columns (e.g. <code class="docutils literal notranslate"><span class="pre">day</span> <span class="pre">=</span> <span class="pre">username['dob']</span></code>).</p>
-<p>If you implemented a custom <code class="docutils literal notranslate"><span class="pre">FileOpener</span></code> you will need to add the <code class="docutils literal notranslate"><span class="pre">PartitionedFile</span></code> argument
-but are not required to use it in any way.</p>
-</section>
-</section>
-<section id="datafusion-47-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code><a class="headerlink" href="#datafusion-47-0-0" title="Link to this heading">#</a></h2>
-<p>This section calls out some of the major changes in the <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code> release of DataFusion.</p>
-<p>Here are some example upgrade PRs that demonstrate changes required when upgrading from DataFusion 46.0.0:</p>
-<ul class="simple">
-<li><p><a class="reference external" href="https://github.com/delta-io/delta-rs/pull/3378">delta-rs Upgrade to <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code></a></p></li>
-<li><p><a class="reference external" href="https://github.com/apache/datafusion-comet/pull/1563">DataFusion Comet Upgrade to <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code></a></p></li>
-<li><p><a class="reference external" href="https://github.com/lakehq/sail/pull/434">Sail Upgrade to <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code></a></p></li>
-</ul>
-<section id="upgrades-to-arrow-rs-and-arrow-parquet-55-0-0-and-object-store-0-12-0">
-<h3>Upgrades to <code class="docutils literal notranslate"><span class="pre">arrow-rs</span></code> and <code class="docutils literal notranslate"><span class="pre">arrow-parquet</span></code> 55.0.0 and <code class="docutils literal notranslate"><span class="pre">object_store</span></code> 0.12.0<a class="headerlink" href="#upgrades-to-arrow-rs-and-arrow-parquet-55-0-0-and-object-store-0-12-0" title="Link to this heading">#</a></h3>
-<p>Several APIs are changed in the underlying arrow and parquet libraries to use a
-<code class="docutils literal notranslate"><span class="pre">u64</span></code> instead of <code class="docutils literal notranslate"><span class="pre">usize</span></code> to better support WASM (See <a class="reference external" href="https://github.com/apache/arrow-rs/pull/7371">#7371</a> and [#6961])</p>
-<p>Additionally <code class="docutils literal notranslate"><span class="pre">ObjectStore::list</span></code> and <code class="docutils literal notranslate"><span class="pre">ObjectStore::list_with_offset</span></code> have been changed to return <code class="docutils literal notranslate"><span class="pre">static</span></code> lifetimes (See <a class="reference external" href="https://github.com/apache/arrow-rs/pull/6619">#6619</a>)</p>
-<p>This requires converting from <code class="docutils literal notranslate"><span class="pre">usize</span></code> to <code class="docutils literal notranslate"><span class="pre">u64</span></code> occasionally as well as changes to <code class="docutils literal notranslate"><span class="pre">ObjectStore</span></code> implementations such as</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">Objectstore</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="o">..</span><span class="p">.</span>
-<span class="w">    </span><span class="c1">// The range is now a u64 instead of usize</span>
-<span class="w">    </span><span class="k">async</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">get_range</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">location</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">Path</span><span class="p">,</span><span class="w"> </span><span class="n">ran [...]
-<span class="w">        </span><span class="bp">self</span><span class="p">.</span><span class="n">inner</span><span class="p">.</span><span class="n">get_range</span><span class="p">(</span><span class="n">location</span><span class="p">,</span><span class="w"> </span><span class="n">range</span><span class="p">).</span><span class="k">await</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="w">    </span><span class="o">..</span><span class="p">.</span>
-<span class="w">    </span><span class="c1">// the lifetime is now &#39;static instead of `_ (meaning the captured closure can&#39;t contain references)</span>
-<span class="w">    </span><span class="c1">// (this also applies to list_with_offset)</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">list</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">prefix</span><span class="p">:</span><span class="w"> </span><span class="nb">Option</span><span class="o">&lt;&amp;</span><span class="n">Path</span><span class="o">&gt;</span><span class="p">)</span><span class="w"> </span><span class="p">-&g [...]
-<span class="w">        </span><span class="bp">self</span><span class="p">.</span><span class="n">inner</span><span class="p">.</span><span class="n">list</span><span class="p">(</span><span class="n">prefix</span><span class="p">)</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>The <code class="docutils literal notranslate"><span class="pre">ParquetObjectReader</span></code> has been updated to no longer require the object size
-(it can be fetched using a single suffix request). See <a class="reference external" href="https://github.com/apache/arrow-rs/pull/7334">#7334</a> for details</p>
-<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">46.0.0</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">meta</span><span class="p">:</span><span class="w"> </span><span class="nc">ObjectMeta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">..</span><span class="p">.;</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetObjectReader</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">meta</span><span class="p">);</span>
-</pre></div>
-</div>
-<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">meta</span><span class="p">:</span><span class="w"> </span><span class="nc">ObjectMeta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">..</span><span class="p">.;</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetObjectReader</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">location</span><span class="p">)</span>
-<span class="w">  </span><span class="p">.</span><span class="n">with_file_size</span><span class="p">(</span><span class="n">meta</span><span class="p">.</span><span class="n">size</span><span class="p">);</span>
-</pre></div>
-</div>
-</section>
-<section id="displayformattype-treerender">
-<h3><code class="docutils literal notranslate"><span class="pre">DisplayFormatType::TreeRender</span></code><a class="headerlink" href="#displayformattype-treerender" title="Link to this heading">#</a></h3>
-<p>DataFusion now supports <a class="reference external" href="https://datafusion.apache.org/user-guide/sql/explain.html#tree-format-default"><code class="docutils literal notranslate"><span class="pre">tree</span></code> style explain plans</a>. Implementations of
-<code class="docutils literal notranslate"><span class="pre">Executionplan</span></code> must also provide a description in the
-<code class="docutils literal notranslate"><span class="pre">DisplayFormatType::TreeRender</span></code> format. This can be the same as the existing
-<code class="docutils literal notranslate"><span class="pre">DisplayFormatType::Default</span></code>.</p>
-</section>
-<section id="removed-deprecated-apis">
-<h3>Removed Deprecated APIs<a class="headerlink" href="#removed-deprecated-apis" title="Link to this heading">#</a></h3>
-<p>Several APIs have been removed in this release. These were either deprecated
-previously or were hard to use correctly such as the multiple different
-<code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke*</span></code> APIs. See <a class="reference external" href="https://github.com/apache/datafusion/pull/15130">#15130</a>, <a class="reference external" href="https://github.com/apache/datafusion/pull/15123">#15123</a>, and <a class="reference external" href="https://github.com/apache/datafusion/pull/15027">#15027</a> for more
-details.</p>
-</section>
-<section id="filescanconfig-filescanconfigbuilder">
-<h3><code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> –&gt; <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code><a class="headerlink" href="#filescanconfig-filescanconfigbuilder" title="Link to this heading">#</a></h3>
-<p>Previously, <code class="docutils literal notranslate"><span class="pre">FileScanConfig::build()</span></code> directly created ExecutionPlans. In
-DataFusion 47.0.0 this has been changed to use <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code>. See
-<a class="reference external" href="https://github.com/apache/datafusion/pull/15352">#15352</a> for details.</p>
-<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">46.0.0</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">plan</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfig</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">url</span><span class="p">,</span><span class="w"> </span><span class="n">schema</span><span class="p">,</span><span class="w"> </spa [...]
-<span class="w">  </span><span class="p">.</span><span class="n">with_statistics</span><span class="p">(</span><span class="n">stats</span><span class="p">)</span>
-<span class="w">  </span><span class="o">..</span><span class="p">.</span>
-<span class="w">  </span><span class="p">.</span><span class="n">build</span><span class="p">()</span>
-</pre></div>
-</div>
-<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfigBuilder</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">url</span><span class="p">,</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n" [...]
-<span class="w">  </span><span class="p">.</span><span class="n">with_statistics</span><span class="p">(</span><span class="n">stats</span><span class="p">)</span>
-<span class="w">  </span><span class="o">..</span><span class="p">.</span>
-<span class="w">  </span><span class="p">.</span><span class="n">build</span><span class="p">();</span>
-<span class="kd">let</span><span class="w"> </span><span class="n">scan</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DataSourceExec</span><span class="p">::</span><span class="n">from_data_source</span><span class="p">(</span><span class="n">config</span><span class="p">);</span>
-</pre></div>
-</div>
-</section>
-</section>
-<section id="datafusion-46-0-0">
-<h2>DataFusion <code class="docutils literal notranslate"><span class="pre">46.0.0</span></code><a class="headerlink" href="#datafusion-46-0-0" title="Link to this heading">#</a></h2>
-<section id="use-invoke-with-args-instead-of-invoke-and-invoke-batch">
-<h3>Use <code class="docutils literal notranslate"><span class="pre">invoke_with_args</span></code> instead of <code class="docutils literal notranslate"><span class="pre">invoke()</span></code> and <code class="docutils literal notranslate"><span class="pre">invoke_batch()</span></code><a class="headerlink" href="#use-invoke-with-args-instead-of-invoke-and-invoke-batch" title="Link to this heading">#</a></h3>
-<p>DataFusion is moving to a consistent API for invoking ScalarUDFs,
-<a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_with_args"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke_with_args()</span></code></a>, and deprecating
-<a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke()</span></code></a>, <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_batch"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke_batch()</span></code></a>, and  [...]
-<p>If you see errors such as the following it means the older APIs are being used:</p>
-<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>This feature is not implemented: Function concat does not implement invoke but called
-</pre></div>
-</div>
-<p>To fix this error, use <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_with_args"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke_with_args()</span></code></a> instead, as shown
-below. See <a class="reference external" href="https://github.com/apache/datafusion/pull/14876">PR 14876</a> for an example.</p>
-<p>Given existing code like this:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">ScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">SparkConcat</span><span class="w"> </span><span class="p">{</span>
-<span class="o">..</span><span class="p">.</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_batch</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="p">[</span><span class="n">ColumnarValue</span><span class="p">],</span><span class="w"> </span><span class="n">number_rows</span><span [...]
-<span class="w">        </span><span class="k">if</span><span class="w"> </span><span class="n">args</span>
-<span class="w">            </span><span class="p">.</span><span class="n">iter</span><span class="p">()</span>
-<span class="w">            </span><span class="p">.</span><span class="n">any</span><span class="p">(</span><span class="o">|</span><span class="n">arg</span><span class="o">|</span><span class="w"> </span><span class="fm">matches!</span><span class="p">(</span><span class="n">arg</span><span class="p">.</span><span class="n">data_type</span><span class="p">(),</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">List</span><span class="p [...]
-<span class="w">        </span><span class="p">{</span>
-<span class="w">            </span><span class="n">ArrayConcat</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_batch</span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">number_rows</span><span class="p">)</span>
-<span class="w">        </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
-<span class="w">            </span><span class="n">ConcatFunc</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_batch</span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">number_rows</span><span class="p">)</span>
-<span class="w">        </span><span class="p">}</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-<p>To</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">ScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">SparkConcat</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="o">..</span><span class="p">.</span>
-<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_with_args</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nc">ScalarFunctionArgs</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span>< [...]
-<span class="w">        </span><span class="k">if</span><span class="w"> </span><span class="n">args</span>
-<span class="w">            </span><span class="p">.</span><span class="n">args</span>
-<span class="w">            </span><span class="p">.</span><span class="n">iter</span><span class="p">()</span>
-<span class="w">            </span><span class="p">.</span><span class="n">any</span><span class="p">(</span><span class="o">|</span><span class="n">arg</span><span class="o">|</span><span class="w"> </span><span class="fm">matches!</span><span class="p">(</span><span class="n">arg</span><span class="p">.</span><span class="n">data_type</span><span class="p">(),</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">List</span><span class="p [...]
-<span class="w">        </span><span class="p">{</span>
-<span class="w">            </span><span class="n">ArrayConcat</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_with_args</span><span class="p">(</span><span class="n">args</span><span class="p">)</span>
-<span class="w">        </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
-<span class="w">            </span><span class="n">ConcatFunc</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_with_args</span><span class="p">(</span><span class="n">args</span><span class="p">)</span>
-<span class="w">        </span><span class="p">}</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-</section>
-<section id="parquetexec-avroexec-csvexec-jsonexec-deprecated">
-<h3><code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroExec</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvExec</span></code>, <code class="docutils literal notranslate"><span class="pre">JsonExec</span></code> deprecated<a class="headerlink" href="#parquetexec-avroexec-csvexec-jsonexec-deprecated" title="Link to this heading">#</a></h3>
-<p>DataFusion 46 has a major change to how the built in DataSources are organized.
-Instead of individual <code class="docutils literal notranslate"><span class="pre">ExecutionPlan</span></code>s for the different file formats they now
-all use <code class="docutils literal notranslate"><span class="pre">DataSourceExec</span></code> and the format specific information is embodied in new
-traits <code class="docutils literal notranslate"><span class="pre">DataSource</span></code> and <code class="docutils literal notranslate"><span class="pre">FileSource</span></code>.</p>
-<p>Here is more information about</p>
-<ul class="simple">
-<li><p><a class="reference external" href="https://github.com/apache/datafusion/issues/13838">Design Ticket</a></p></li>
-<li><p>Change PR <a class="reference external" href="https://github.com/apache/datafusion/pull/14224">PR #14224</a></p></li>
-<li><p>Example of an Upgrade <a class="reference external" href="https://github.com/delta-io/delta-rs/pull/3261">PR in delta-rs</a></p></li>
-</ul>
-</section>
-<section id="cookbook-changes-to-parquetexecbuilder">
-<h3>Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code><a class="headerlink" href="#cookbook-changes-to-parquetexecbuilder" title="Link to this heading">#</a></h3>
-<p>Code that looks for <code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code> like this will no longer work:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">parquet_exec</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">plan</span><span class="p">.</span><span class="n">as_any</span><span class="p">().</ [...]
-<span class="w">        </span><span class="c1">// Do something with ParquetExec here</span>
-<span class="w">    </span><span class="p">}</span>
-</pre></div>
-</div>
-<p>Instead, with <code class="docutils literal notranslate"><span class="pre">DataSourceExec</span></code>, the same information is now on <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> and
-<code class="docutils literal notranslate"><span class="pre">ParquetSource</span></code>. The equivalent code is</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">datasource_exec</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">plan</span><span class="p">.</span><span class="n">as_any</span><span class="p">().</span><span class="n">dow [...]
-<span class="w">  </span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">scan_config</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">datasource_exec</span><span class="p">.</span><span class="n">data_source</span><span class="p">().</span><span class="n">as_any</span><span class="p">().</span><span cl [...]
-<span class="w">    </span><span class="c1">// FileGroups, and other information is on the FileScanConfig</span>
-<span class="w">    </span><span class="c1">// parquet</span>
-<span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">parquet_source</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scan_config</span><span class="p">.</span><span class="n">file_source</span><span class="p">.</span><span class="n">as_any</span><span class="p">().</span><span cla [...]
-<span class="w">    </span><span class="p">{</span>
-<span class="w">      </span><span class="c1">// Information on PruningPredicates and parquet options are here</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">}</span>
-</pre></div>
-</div>
-</section>
-<section id="id1">
-<h3>Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code><a class="headerlink" href="#id1" title="Link to this heading">#</a></h3>
-<p>Likewise code that builds <code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code> using the <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code> such as
-the following must be changed:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="k">mut</span><span class="w"> </span><span class="n">exec_plan_builder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetExecBuilder</span><span class="p">::</span><span class="n">new</span><span class="p">(</span>
-<span class="w">    </span><span class="n">FileScanConfig</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">log_store</span><span class="p">.</span><span class="n">object_store_url</span><span class="p">(),</span><span class="w"> </span><span class="n">file_schema</span><span class="p">)</span>
-<span class="w">        </span><span class="p">.</span><span class="n">with_projection</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">projection</span><span class="p">.</span><span class="n">cloned</span><span class="p">())</span>
-<span class="w">        </span><span class="p">.</span><span class="n">with_limit</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">limit</span><span class="p">)</span>
-<span class="w">        </span><span class="p">.</span><span class="n">with_table_partition_cols</span><span class="p">(</span><span class="n">table_partition_cols</span><span class="p">),</span>
-<span class="p">)</span>
-<span class="p">.</span><span class="n">with_schema_adapter_factory</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">DeltaSchemaAdapterFactory</span><span class="w"> </span><span class="p">{}))</span>
-<span class="p">.</span><span class="n">with_table_parquet_options</span><span class="p">(</span><span class="n">parquet_options</span><span class="p">);</span>
-
-<span class="c1">// Add filter</span>
-<span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">predicate</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">logical_filter</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="n">config</span><span class="p">.</span><span class="n">enable_parquet_pushdown</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="n">exec_plan_builder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exec_plan_builder</span><span class="p">.</span><span class="n">with_predicate</span><span class="p">(</span><span class="n">predicate</span><span class="p">);</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">};</span>
-</pre></div>
-</div>
-<p>New code should use <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> to build the appropriate <code class="docutils literal notranslate"><span class="pre">DataSourceExec</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="k">mut</span><span class="w"> </span><span class="n">file_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetSource</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">parquet_options</span><span class="p">)</span>
-<span class="w">    </span><span class="p">.</span><span class="n">with_schema_adapter_factory</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">DeltaSchemaAdapterFactory</span><span class="w"> </span><span class="p">{}));</span>
-
-<span class="c1">// Add filter</span>
-<span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">predicate</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">logical_filter</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="n">config</span><span class="p">.</span><span class="n">enable_parquet_pushdown</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="n">file_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_source</span><span class="p">.</span><span class="n">with_predicate</span><span class="p">(</span><span class="n">predicate</span><span class="p">);</span>
-<span class="w">    </span><span class="p">}</span>
-<span class="p">};</span>
-
-<span class="kd">let</span><span class="w"> </span><span class="n">file_scan_config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfig</span><span class="p">::</span><span class="n">new</span><span class="p">(</span>
-<span class="w">    </span><span class="bp">self</span><span class="p">.</span><span class="n">log_store</span><span class="p">.</span><span class="n">object_store_url</span><span class="p">(),</span>
-<span class="w">    </span><span class="n">file_schema</span><span class="p">,</span>
-<span class="w">    </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">file_source</span><span class="p">),</span>
-<span class="p">)</span>
-<span class="p">.</span><span class="n">with_statistics</span><span class="p">(</span><span class="n">stats</span><span class="p">)</span>
-<span class="p">.</span><span class="n">with_projection</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">projection</span><span class="p">.</span><span class="n">cloned</span><span class="p">())</span>
-<span class="p">.</span><span class="n">with_limit</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">limit</span><span class="p">)</span>
-<span class="p">.</span><span class="n">with_table_partition_cols</span><span class="p">(</span><span class="n">table_partition_cols</span><span class="p">);</span>
-
-<span class="c1">// Build the actual scan like this</span>
-<span class="n">parquet_scan</span><span class="p">:</span><span class="w"> </span><span class="nc">file_scan_config</span><span class="p">.</span><span class="n">build</span><span class="p">(),</span>
-</pre></div>
-</div>
-</section>
-<section id="datafusion-cli-no-longer-automatically-unescapes-strings">
-<h3><code class="docutils literal notranslate"><span class="pre">datafusion-cli</span></code> no longer automatically unescapes strings<a class="headerlink" href="#datafusion-cli-no-longer-automatically-unescapes-strings" title="Link to this heading">#</a></h3>
-<p><code class="docutils literal notranslate"><span class="pre">datafusion-cli</span></code> previously would incorrectly unescape string literals (see <a class="reference external" href="https://github.com/apache/datafusion/issues/13286">ticket</a> for more details).</p>
-<p>To escape <code class="docutils literal notranslate"><span class="pre">'</span></code> in SQL literals, use <code class="docutils literal notranslate"><span class="pre">''</span></code>:</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="s1">&#39;it&#39;&#39;s escaped&#39;</span><span class="p">;</span>
-<span class="o">+</span><span class="c1">----------------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">Utf8</span><span class="p">(</span><span class="ss">&quot;it&#39;s escaped&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">----------------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">it</span><span class="err">&#39;</span><span class="n">s</span><span class="w"> </span><span class="n">escaped</span><span class="w">         </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">----------------------+</span>
-<span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-</pre></div>
-</div>
-<p>To include special characters (such as newlines via <code class="docutils literal notranslate"><span class="pre">\n</span></code>) you can use an <code class="docutils literal notranslate"><span class="pre">E</span></code> literal string. For example</p>
-<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="s1">&#39;foo\nbar&#39;</span><span class="p">;</span>
-<span class="o">+</span><span class="c1">------------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">Utf8</span><span class="p">(</span><span class="ss">&quot;foo\nbar&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">------------------+</span>
-<span class="o">|</span><span class="w"> </span><span class="n">foo</span><span class="err">\</span><span class="n">nbar</span><span class="w">         </span><span class="o">|</span>
-<span class="o">+</span><span class="c1">------------------+</span>
-<span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
-<span class="n">Elapsed</span><span class="w"> </span><span class="mi">0</span><span class="p">.</span><span class="mi">005</span><span class="w"> </span><span class="n">seconds</span><span class="p">.</span>
-</pre></div>
-</div>
-</section>
-<section id="changes-to-array-scalar-function-signatures">
-<h3>Changes to array scalar function signatures<a class="headerlink" href="#changes-to-array-scalar-function-signatures" title="Link to this heading">#</a></h3>
-<p>DataFusion 46 has changed the way scalar array function signatures are
-declared. Previously, functions needed to select from a list of predefined
-signatures within the <code class="docutils literal notranslate"><span class="pre">ArrayFunctionSignature</span></code> enum. Now the signatures
-can be defined via a <code class="docutils literal notranslate"><span class="pre">Vec</span></code> of pseudo-types, which each correspond to a
-single argument. Those pseudo-types are the variants of the
-<code class="docutils literal notranslate"><span class="pre">ArrayFunctionArgument</span></code> enum and are as follows:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">Array</span></code>: An argument of type List/LargeList/FixedSizeList. All Array
-arguments must be coercible to the same type.</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">Element</span></code>: An argument that is coercible to the inner type of the <code class="docutils literal notranslate"><span class="pre">Array</span></code>
-arguments.</p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">Index</span></code>: An <code class="docutils literal notranslate"><span class="pre">Int64</span></code> argument.</p></li>
-</ul>
-<p>Each of the old variants can be converted to the new format as follows:</p>
-<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElement)</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">],</span>
-<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">ListCoercion</span><span class="p">::</span><span class="n">FixedSizedListToList</span><span class="p">),</span>
-<span class="p">});</span>
-</pre></div>
-</div>
-<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ElementAndArray)</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">],</span>
-<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">ListCoercion</span><span class="p">::</span><span class="n">FixedSizedListToList</span><span class="p">),</span>
-<span class="p">});</span>
-</pre></div>
-</div>
-<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndIndex)</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Index</span><span class="p">],</span>
-<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
-<span class="p">});</span>
-</pre></div>
-</div>
-<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElementAndOptionalIndex)</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">OneOf</span><span class="p">(</span><span class="fm">vec!</span><span class="p">[</span>
-<span class="w">    </span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">],</span>
-<span class="w">        </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
-<span class="w">    </span><span class="p">}),</span>
-<span class="w">    </span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
-<span class="w">        </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span>
-<span class="w">            </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span>
-<span class="w">            </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">,</span>
-<span class="w">            </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Index</span><span class="p">,</span>
-<span class="w">        </span><span class="p">],</span>
-<span class="w">        </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
-<span class="w">    </span><span class="p">}),</span>
-<span class="p">]);</span>
-</pre></div>
-</div>
-<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::Array)</span></code>:</p>
-<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
-<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">],</span>
-<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
-<span class="p">});</span>
-</pre></div>
-</div>
-<p>Alternatively, you can switch to using one of the following functions which
-take care of constructing the <code class="docutils literal notranslate"><span class="pre">TypeSignature</span></code> for you:</p>
-<ul class="simple">
-<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array_and_element</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array_and_element_and_optional_index</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array_and_index</span></code></p></li>
-<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array</span></code></p></li>
-</ul>
-</section>
-</section>
-</section>
-
-
-                </article>
-              
-              
-              
-              
-              
-                <footer class="prev-next-footer d-print-none">
-                  
-<div class="prev-next-area">
-    <a class="left-prev"
-       href="index.html"
-       title="previous page">
-      <i class="fa-solid fa-angle-left"></i>
-      <div class="prev-next-info">
-        <p class="prev-next-subtitle">previous</p>
-        <p class="prev-next-title">Introduction</p>
-      </div>
-    </a>
-    <a class="right-next"
-       href="extensions.html"
-       title="next page">
-      <div class="prev-next-info">
-        <p class="prev-next-subtitle">next</p>
-        <p class="prev-next-title">Extensions List</p>
-      </div>
-      <i class="fa-solid fa-angle-right"></i>
-    </a>
-</div>
-                </footer>
-              
-            </div>
-            
-            
-              
-                <dialog id="pst-secondary-sidebar-modal"></dialog>
-                <div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
-
-
-  <div class="sidebar-secondary-item">
-<div
-    id="pst-page-navigation-heading-2"
-    class="page-toc tocsection onthispage">
-    <i class="fa-solid fa-list"></i> On this page
-  </div>
-  <nav class="bd-toc-nav page-toc" aria-labelledby="pst-page-navigation-heading-2">
-    <ul class="visible nav section-nav flex-column">
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-53-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">53.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#filesinkconfig-adds-file-output-mode"><code class="docutils literal notranslate"><span class="pre">FileSinkConfig</span></code> adds <code class="docutils literal notranslate"><span class="pre">file_output_mode</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#simplifyinfo-trait-removed-simplifycontext-now-uses-builder-style-api"><code class="docutils literal notranslate"><span class="pre">SimplifyInfo</span></code> trait removed, <code class="docutils literal notranslate"><span class="pre">SimplifyContext</span></code> now uses builder-style API</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#struct-casting-now-requires-field-name-overlap">Struct Casting Now Requires Field Name Overlap</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#filterexec-builder-methods-deprecated"><code class="docutils literal notranslate"><span class="pre">FilterExec</span></code> builder methods deprecated</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#protobuf-conversion-trait-added">Protobuf conversion trait added</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#generate-series-and-range-table-functions-changed"><code class="docutils literal notranslate"><span class="pre">generate_series</span></code> and <code class="docutils literal notranslate"><span class="pre">range</span></code> table functions changed</a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-52-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">52.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#changes-to-dfschema-api">Changes to DFSchema API</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#listingtableprovider-now-caches-list-commands">ListingTableProvider now caches <code class="docutils literal notranslate"><span class="pre">LIST</span></code> commands</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#newlines-in-values-moved-from-filescanconfig-to-csvoptions"><code class="docutils literal notranslate"><span class="pre">newlines_in_values</span></code> moved from <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> to <code class="docutils literal notranslate"><span class="pre">CsvOptions</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#removal-of-pyarrow-feature">Removal of <code class="docutils literal notranslate"><span class="pre">pyarrow</span></code> feature</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#refactoring-of-filesource-constructors-and-filescanconfigbuilder-to-accept-schemas-upfront">Refactoring of <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> constructors and <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code> to accept schemas upfront</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#adaptive-filter-representation-in-parquet-filter-pushdown">Adaptive filter representation in Parquet filter pushdown</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#statistics-handling-moved-from-filesource-to-filescanconfig">Statistics handling moved from <code class="docutils literal notranslate"><span class="pre">FileSource</span></code> to <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#partition-column-handling-moved-out-of-physicalexpradapter">Partition column handling moved out of <code class="docutils literal notranslate"><span class="pre">PhysicalExprAdapter</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#build-row-filter-signature-simplified"><code class="docutils literal notranslate"><span class="pre">build_row_filter</span></code> signature simplified</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#planner-now-requires-explicit-opt-in-for-within-group-syntax">Planner now requires explicit opt-in for WITHIN GROUP syntax</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#aggregateudfimpl-supports-null-handling-clause-now-defaults-to-false"><code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::supports_null_handling_clause</span></code> now defaults to <code class="docutils literal notranslate"><span class="pre">false</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#api-change-for-cacheaccessor-trait">API change for <code class="docutils literal notranslate"><span class="pre">CacheAccessor</span></code> trait</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#ffi-crate-updates">FFI crate updates</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#projection-handling-moved-from-filescanconfig-to-filesource">Projection handling moved from FileScanConfig to FileSource</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#schemaadapter-and-schemaadapterfactory-completely-removed"><code class="docutils literal notranslate"><span class="pre">SchemaAdapter</span></code> and <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> completely removed</a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-51-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">51.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#arrow-parquet-updated-to-57-0-0"><code class="docutils literal notranslate"><span class="pre">arrow</span></code> / <code class="docutils literal notranslate"><span class="pre">parquet</span></code> updated to 57.0.0</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#upgrade-to-arrow-57-0-0-and-parquet-57-0-0">Upgrade to arrow <code class="docutils literal notranslate"><span class="pre">57.0.0</span></code> and parquet <code class="docutils literal notranslate"><span class="pre">57.0.0</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#msrv-updated-to-1-88-0"><code class="docutils literal notranslate"><span class="pre">MSRV</span></code> updated to 1.88.0</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#functionregistry-exposes-two-additional-methods"><code class="docutils literal notranslate"><span class="pre">FunctionRegistry</span></code> exposes two additional methods</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-proto-use-taskcontext-rather-than-sessioncontext-in-physical-plan-serde-methods"><code class="docutils literal notranslate"><span class="pre">datafusion-proto</span></code> use <code class="docutils literal notranslate"><span class="pre">TaskContext</span></code> rather than <code class="docutils literal notranslate"><span class="pre">SessionContext</span></code> in physical plan serde methods< [...]
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#sessionstate-s-sql-to-statement-method-takes-dialect-rather-than-a-str"><code class="docutils literal notranslate"><span class="pre">SessionState</span></code>’s <code class="docutils literal notranslate"><span class="pre">sql_to_statement</span></code> method takes <code class="docutils literal notranslate"><span class="pre">Dialect</span></code> rather than a <code class="docutils literal notranslate">< [...]
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#reorganization-of-listingtable-into-datafusion-catalog-listing-crate">Reorganization of <code class="docutils literal notranslate"><span class="pre">ListingTable</span></code> into <code class="docutils literal notranslate"><span class="pre">datafusion-catalog-listing</span></code> crate</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#reorganization-of-arrowsource-into-datafusion-datasource-arrow-crate">Reorganization of <code class="docutils literal notranslate"><span class="pre">ArrowSource</span></code> into <code class="docutils literal notranslate"><span class="pre">datafusion-datasource-arrow</span></code> crate</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#filescanconfig-projection-renamed-to-filescanconfig-projection-exprs"><code class="docutils literal notranslate"><span class="pre">FileScanConfig::projection</span></code> renamed to <code class="docutils literal notranslate"><span class="pre">FileScanConfig::projection_exprs</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#describe-query-support"><code class="docutils literal notranslate"><span class="pre">DESCRIBE</span> <span class="pre">query</span></code> support</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-execution-time-zone-default-configuration-changed"><code class="docutils literal notranslate"><span class="pre">datafusion.execution.time_zone</span></code> default configuration changed</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#introduction-of-tableschema-and-changes-to-filesource-with-schema-method">Introduction of <code class="docutils literal notranslate"><span class="pre">TableSchema</span></code> and changes to <code class="docutils literal notranslate"><span class="pre">FileSource::with_schema()</span></code> method</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#aggregateudfimpl-is-ordered-set-aggregate-has-been-renamed-to-aggregateudfimpl-supports-within-group-clause"><code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::is_ordered_set_aggregate</span></code> has been renamed to <code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl::supports_within_group_clause</span></code></a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-50-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">50.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#listingtable-automatically-detects-hive-partitioned-tables">ListingTable automatically detects Hive Partitioned tables</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#msrv-updated-to-1-86-0"><code class="docutils literal notranslate"><span class="pre">MSRV</span></code> updated to 1.86.0</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#scalarudfimpl-aggregateudfimpl-and-windowudfimpl-traits-now-require-partialeq-eq-and-hash-traits"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl</span></code>, <code class="docutils literal notranslate"><span class="pre">AggregateUDFImpl</span></code> and <code class="docutils literal notranslate"><span class="pre">WindowUDFImpl</span></code> traits now require <code class="doc [...]
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#asyncscalarudfimpl-invoke-async-with-args-returns-columnarvalue"><code class="docutils literal notranslate"><span class="pre">AsyncScalarUDFImpl::invoke_async_with_args</span></code> returns <code class="docutils literal notranslate"><span class="pre">ColumnarValue</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#projectionexpr-changed-from-type-alias-to-struct"><code class="docutils literal notranslate"><span class="pre">ProjectionExpr</span></code> changed from type alias to struct</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#sessionstate-sessionconfig-and-optimizerconfig-returns-arc-configoptions-instead-of-configoptions"><code class="docutils literal notranslate"><span class="pre">SessionState</span></code>, <code class="docutils literal notranslate"><span class="pre">SessionConfig</span></code>, and <code class="docutils literal notranslate"><span class="pre">OptimizerConfig</span></code> returns <code class="docutils liter [...]
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#api-change-to-asyncscalarudfimpl-invoke-async-with-args">API Change to <code class="docutils literal notranslate"><span class="pre">AsyncScalarUDFImpl::invoke_async_with_args</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#schema-rewriter-module-moved-to-new-crate">Schema Rewriter Module Moved to New Crate</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#upgrade-to-arrow-56-0-0-and-parquet-56-0-0">Upgrade to arrow <code class="docutils literal notranslate"><span class="pre">56.0.0</span></code> and parquet <code class="docutils literal notranslate"><span class="pre">56.0.0</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#added-executionplan-reset-state">Added <code class="docutils literal notranslate"><span class="pre">ExecutionPlan::reset_state</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#nested-loop-join-input-sort-order-cannot-be-preserved">Nested Loop Join input sort order cannot be preserved</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#add-as-any-method-to-lazybatchgenerator">Add <code class="docutils literal notranslate"><span class="pre">as_any()</span></code> method to <code class="docutils literal notranslate"><span class="pre">LazyBatchGenerator</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#refactored-datasource-try-swapping-with-projection">Refactored <code class="docutils literal notranslate"><span class="pre">DataSource::try_swapping_with_projection</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#fileopenfuture-now-uses-datafusionerror-instead-of-arrowerror"><code class="docutils literal notranslate"><span class="pre">FileOpenFuture</span></code> now uses <code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code> instead of <code class="docutils literal notranslate"><span class="pre">ArrowError</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#ffi-user-defined-aggregate-function-signature-change">FFI user defined aggregate function signature change</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#added-physicalexpr-is-volatile-node">Added <code class="docutils literal notranslate"><span class="pre">PhysicalExpr::is_volatile_node</span></code></a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-49-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">49.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#msrv-updated-to-1-85-1"><code class="docutils literal notranslate"><span class="pre">MSRV</span></code> updated to 1.85.1</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusionerror-variants-are-now-boxed"><code class="docutils literal notranslate"><span class="pre">DataFusionError</span></code> variants are now <code class="docutils literal notranslate"><span class="pre">Box</span></code>ed</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#metadata-on-arrow-types-is-now-represented-by-fieldmetadata">Metadata on Arrow Types is now represented by <code class="docutils literal notranslate"><span class="pre">FieldMetadata</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#new-datafusion-execution-spill-compression-configuration-option">New <code class="docutils literal notranslate"><span class="pre">datafusion.execution.spill_compression</span></code> configuration option</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#deprecated-map-varchar-to-utf8view-configuration-option">Deprecated <code class="docutils literal notranslate"><span class="pre">map_varchar_to_utf8view</span></code> configuration option</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#new-map-string-types-to-utf8view-configuration-option">New <code class="docutils literal notranslate"><span class="pre">map_string_types_to_utf8view</span></code> configuration option</a><ul class="nav section-nav flex-column">
-<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#examples">Examples</a></li>
-</ul>
-</li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#deprecating-schemaadapterfactory-and-schemaadapter">Deprecating <code class="docutils literal notranslate"><span class="pre">SchemaAdapterFactory</span></code> and <code class="docutils literal notranslate"><span class="pre">SchemaAdapter</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#tableparquetoptions-updated"><code class="docutils literal notranslate"><span class="pre">TableParquetOptions</span></code> Updated</a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-48-0-1">DataFusion <code class="docutils literal notranslate"><span class="pre">48.0.1</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-execution-collect-statistics-now-defaults-to-true"><code class="docutils literal notranslate"><span class="pre">datafusion.execution.collect_statistics</span></code> now defaults to <code class="docutils literal notranslate"><span class="pre">true</span></code></a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-48-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">48.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#expr-literal-has-optional-metadata"><code class="docutils literal notranslate"><span class="pre">Expr::Literal</span></code> has optional metadata</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#expr-windowfunction-is-now-boxed"><code class="docutils literal notranslate"><span class="pre">Expr::WindowFunction</span></code> is now <code class="docutils literal notranslate"><span class="pre">Box</span></code>ed</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#the-varchar-sql-type-is-now-represented-as-utf8view-in-arrow">The <code class="docutils literal notranslate"><span class="pre">VARCHAR</span></code> SQL type is now represented as <code class="docutils literal notranslate"><span class="pre">Utf8View</span></code> in Arrow</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#listingoptions-default-for-collect-stat-changed-from-true-to-false"><code class="docutils literal notranslate"><span class="pre">ListingOptions</span></code> default for <code class="docutils literal notranslate"><span class="pre">collect_stat</span></code> changed from <code class="docutils literal notranslate"><span class="pre">true</span></code> to <code class="docutils literal notranslate"><span class [...]
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#processing-fieldref-instead-of-datatype-for-user-defined-functions">Processing <code class="docutils literal notranslate"><span class="pre">FieldRef</span></code> instead of <code class="docutils literal notranslate"><span class="pre">DataType</span></code> for user defined functions</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#physical-expression-return-field">Physical Expression return <code class="docutils literal notranslate"><span class="pre">Field</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#fileformat-supports-filters-pushdown-replaced-with-filesource-try-pushdown-filters"><code class="docutils literal notranslate"><span class="pre">FileFormat::supports_filters_pushdown</span></code> replaced with <code class="docutils literal notranslate"><span class="pre">FileSource::try_pushdown_filters</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#parquetexec-avroexec-csvexec-jsonexec-removed"><code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroExec</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvExec</span></code>, <code class="docutils literal notranslate"><span class="pre">JsonExec</span></code> Removed</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#partitionedfile-added-as-an-argument-to-the-fileopener-trait"><code class="docutils literal notranslate"><span class="pre">PartitionedFile</span></code> added as an argument to the <code class="docutils literal notranslate"><span class="pre">FileOpener</span></code> trait</a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-47-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#upgrades-to-arrow-rs-and-arrow-parquet-55-0-0-and-object-store-0-12-0">Upgrades to <code class="docutils literal notranslate"><span class="pre">arrow-rs</span></code> and <code class="docutils literal notranslate"><span class="pre">arrow-parquet</span></code> 55.0.0 and <code class="docutils literal notranslate"><span class="pre">object_store</span></code> 0.12.0</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#displayformattype-treerender"><code class="docutils literal notranslate"><span class="pre">DisplayFormatType::TreeRender</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#removed-deprecated-apis">Removed Deprecated APIs</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#filescanconfig-filescanconfigbuilder"><code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> –&gt; <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code></a></li>
-</ul>
-</li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-46-0-0">DataFusion <code class="docutils literal notranslate"><span class="pre">46.0.0</span></code></a><ul class="nav section-nav flex-column">
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#use-invoke-with-args-instead-of-invoke-and-invoke-batch">Use <code class="docutils literal notranslate"><span class="pre">invoke_with_args</span></code> instead of <code class="docutils literal notranslate"><span class="pre">invoke()</span></code> and <code class="docutils literal notranslate"><span class="pre">invoke_batch()</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#parquetexec-avroexec-csvexec-jsonexec-deprecated"><code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroExec</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvExec</span></code>, <code class="docutils literal notranslate"><span class="pre">JsonExec</span></code> deprecated</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#cookbook-changes-to-parquetexecbuilder">Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code></a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-cli-no-longer-automatically-unescapes-strings"><code class="docutils literal notranslate"><span class="pre">datafusion-cli</span></code> no longer automatically unescapes strings</a></li>
-<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#changes-to-array-scalar-function-signatures">Changes to array scalar function signatures</a></li>
-</ul>
-</li>
-</ul>
-  </nav></div>
-
-  <div class="sidebar-secondary-item">
-
-  
-  <div class="tocsection editthispage">
-    <a href="https://github.com/apache/arrow-datafusion/edit/main/docs/source/library-user-guide/upgrading.md">
-      <i class="fa-solid fa-pencil"></i>
-      
-      
-        
-          Edit on GitHub
-        
-      
-    </a>
-  </div>
-</div>
-
-  <div class="sidebar-secondary-item">
-  <div role="note" aria-label="source link">
-    <h3>This Page</h3>
-    <ul class="this-page-menu">
-      <li><a href="../_sources/library-user-guide/upgrading.md.txt"
-            rel="nofollow">Show Source</a></li>
-    </ul>
-   </div></div>
-
-</div></div>
-              
-            
-          </div>
-          <footer class="bd-footer-content">
-            
-          </footer>
-        
-      </main>
-    </div>
-  </div>
-  
-  <!-- Scripts loaded after <body> so the DOM is not blocked -->
-  <script defer src="../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf"></script>
-<script defer src="../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf"></script>
-
-<!-- Based on pydata_sphinx_theme/footer.html -->
-<footer class="footer mt-5 mt-md-0">
-  <div class="container">
-    
-    <div class="footer-item">
-      <p>Apache DataFusion, Apache, the Apache feather logo, and the Apache DataFusion project logo</p>
-      <p>are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
-    </div>
-  </div>
-</footer>
-
-
-  </body>
-</html>
\ No newline at end of file
diff --git a/library-user-guide/upgrading/46.0.0.html b/library-user-guide/upgrading/46.0.0.html
new file mode 100644
index 0000000000..2cec9445b5
--- /dev/null
+++ b/library-user-guide/upgrading/46.0.0.html
@@ -0,0 +1,764 @@
+
+<!DOCTYPE html>
+
+
+<html lang="en" data-content_root="../../" >
+
+  <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
+
+    <title>Upgrade Guides &#8212; Apache DataFusion  documentation</title>
+  
+  
+  
+  <script data-cfasync="false">
+    document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
+    document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
+  </script>
+  <!--
+    this give us a css class that will be invisible only if js is disabled
+  -->
+  <noscript>
+    <style>
+      .pst-js-only { display: none !important; }
+
+    </style>
+  </noscript>
+  
+  <!-- Loaded before other Sphinx assets -->
+  <link href="../../_static/styles/theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
+<link href="../../_static/styles/pydata-sphinx-theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
+
+    <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=8f2a1f02" />
+    <link rel="stylesheet" type="text/css" href="../../_static/theme_overrides.css?v=d08b24aa" />
+  
+  <!-- So that users can add custom icons -->
+  <script src="../../_static/scripts/fontawesome.js?digest=8878045cc6db502f8baf"></script>
+  <!-- Pre-loaded scripts that we'll load fully later -->
+  <link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf" />
+<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf" />
+
+    <script src="../../_static/documentation_options.js?v=5929fcd5"></script>
+    <script src="../../_static/doctools.js?v=fd6eb6e6"></script>
+    <script src="../../_static/sphinx_highlight.js?v=6ffebe34"></script>
+    <script>DOCUMENTATION_OPTIONS.pagename = 'library-user-guide/upgrading/46.0.0';</script>
+    <link rel="icon" href="../../_static/favicon.svg"/>
+    <link rel="index" title="Index" href="../../genindex.html" />
+    <link rel="search" title="Search" href="../../search.html" />
+    <link rel="next" title="Extensions List" href="../extensions.html" />
+    <link rel="prev" title="Upgrade Guides" href="47.0.0.html" />
+  <meta name="viewport" content="width=device-width, initial-scale=1"/>
+  <meta name="docsearch:language" content="en"/>
+  <meta name="docsearch:version" content="" />
+  </head>
+  
+  
+  <body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">
+
+  
+  
+  <div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>
+  
+  <div id="pst-scroll-pixel-helper"></div>
+  
+  <button type="button" class="btn rounded-pill" id="pst-back-to-top">
+    <i class="fa-solid fa-arrow-up"></i>Back to top</button>
+
+  
+  <dialog id="pst-search-dialog">
+    
+<form class="bd-search d-flex align-items-center"
+      action="../../search.html"
+      method="get">
+  <i class="fa-solid fa-magnifying-glass"></i>
+  <input type="search"
+         class="form-control"
+         name="q"
+         placeholder="Search the docs ..."
+         aria-label="Search the docs ..."
+         autocomplete="off"
+         autocorrect="off"
+         autocapitalize="off"
+         spellcheck="false"/>
+  <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
+  </dialog>
+
+  <div class="pst-async-banner-revealer d-none">
+  <aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
+</div>
+
+  
+    <header class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
+<div class="bd-header__inner bd-page-width">
+  <button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation">
+    <span class="fa-solid fa-bars"></span>
+  </button>
+  
+  
+  <div class="col-lg-3 navbar-header-items__start">
+    
+      <div class="navbar-item">
+
+  
+    
+  
+
+<a class="navbar-brand logo" href="../../index.html">
+  
+  
+  
+  
+  
+    
+    
+      
+    
+    
+    <img src="../../_static/original.svg" class="logo__image only-light" alt="Apache DataFusion  documentation - Home"/>
+    <img src="../../_static/original_dark.svg" class="logo__image only-dark pst-js-only" alt="Apache DataFusion  documentation - Home"/>
+  
+  
+</a></div>
+    
+  </div>
+  
+  <div class="col-lg-9 navbar-header-items">
+    
+    
+    <div class="navbar-header-items__end">
+      
+        <div class="navbar-item navbar-persistent--container">
+          
+
+<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <span class="search-button__default-text">Search</span>
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
+</button>
+        </div>
+      
+      
+        <div class="navbar-item">
+
+<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode"  data-bs-placement="bottom" data-bs-toggle="tooltip">
+  <i class="theme-switch fa-solid fa-sun                fa-lg" data-mode="light" title="Light"></i>
+  <i class="theme-switch fa-solid fa-moon               fa-lg" data-mode="dark"  title="Dark"></i>
+  <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"  title="System Settings"></i>
+</button></div>
+      
+    </div>
+    
+  </div>
+  
+  
+    <div class="navbar-persistent--mobile">
+
+<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <span class="search-button__default-text">Search</span>
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
+</button>
+    </div>
+  
+
+  
+    <button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page">
+      <span class="fa-solid fa-outdent"></span>
+    </button>
+  
+</div>
+
+    </header>
+  
+
+  <div class="bd-container">
+    <div class="bd-container__inner bd-page-width">
+      
+      
+      
+      <dialog id="pst-primary-sidebar-modal"></dialog>
+      <div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
+        
+
+  
+  <div class="sidebar-header-items sidebar-primary__section">
+    
+    
+    
+    
+      <div class="sidebar-header-items__end">
+        
+          <div class="navbar-item">
+
+<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode"  data-bs-placement="bottom" data-bs-toggle="tooltip">
+  <i class="theme-switch fa-solid fa-sun                fa-lg" data-mode="light" title="Light"></i>
+  <i class="theme-switch fa-solid fa-moon               fa-lg" data-mode="dark"  title="Dark"></i>
+  <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"  title="System Settings"></i>
+</button></div>
+        
+      </div>
+    
+  </div>
+  
+    <div class="sidebar-primary-items__start sidebar-primary__section">
+        <div class="sidebar-primary-item"><nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
+
+  <div class="bd-toc-item active">
+    
+    <p aria-level="2" class="caption" role="heading"><span class="caption-text">ASF Links</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference external" href="https://apache.org">Apache Software Foundation</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/licenses/">License</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/foundation/sponsorship.html">Donate</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/security/">Security</a></li>
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">Links</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference external" href="https://github.com/apache/datafusion">GitHub and Issue Tracker</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://crates.io/crates/datafusion">crates.io</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">API Docs</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/blog/">Blog</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">Code of conduct</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../download.html">Download</a></li>
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">User Guide</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/introduction.html">Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/example-usage.html">Example Usage</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/features.html">Features</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/concepts-readings-events.html">Concepts, Readings, Events</a></li>
+
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/crate-configuration.html">Crate Configuration</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../user-guide/cli/index.html">DataFusion CLI</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/overview.html">Overview</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/installation.html">Installation</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/usage.html">Usage</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/datasources.html">Local Files / Directories</a></li>
+
+
+
+
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/functions.html">CLI Specific Functions</a></li>
+</ul>
+</details></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/dataframe.html">DataFrame API</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/arrow-introduction.html">Gentle Arrow Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/expressions.html">Expression API</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../user-guide/sql/index.html">SQL Reference</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/data_types.html">Data Types</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/struct_coercion.html">Struct Type Coercion and Field Mapping</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/select.html">SELECT syntax</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/subqueries.html">Subqueries</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/ddl.html">DDL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/dml.html">DML</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/explain.html">EXPLAIN</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/information_schema.html">Information Schema</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/operators.html">Operators and Literals</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/aggregate_functions.html">Aggregate Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/window_functions.html">Window Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/scalar_functions.html">Scalar Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/special_functions.html">Special Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/format_options.html">Format Options</a></li>
+
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/prepared_statements.html">Prepared Statements</a></li>
+</ul>
+</details></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/configs.html">Configuration Settings</a></li>
+
+
+
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/explain-usage.html">Reading Explain Plans</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/metrics.html">Metrics</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/faq.html">Frequently Asked Questions</a></li>
+
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
+<ul class="current nav bd-sidenav">
+<li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
+<li class="toctree-l1 current active has-children"><a class="reference internal" href="index.html">Upgrade Guides</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul class="current">
+<li class="toctree-l2"><a class="reference internal" href="53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2 current active"><a class="current reference internal" href="#">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
+<li class="toctree-l1"><a class="reference internal" href="../extensions.html">Extensions List</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../using-the-sql-api.html">Using the SQL API</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../extending-sql.html">Extending SQL Syntax</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../working-with-exprs.html">Working with <code class="docutils literal notranslate"><span class="pre">Expr</span></code>s</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../using-the-dataframe-api.html">Using the DataFrame API</a></li>
+
+<li class="toctree-l1"><a class="reference internal" href="../building-logical-plans.html">Building Logical Plans</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../catalogs.html">Catalogs, Schemas, and Tables</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../functions/index.html">Functions</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../functions/adding-udfs.html">Adding User Defined Functions: Scalar/Window/Aggregate/Table Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../functions/spark.html">Spark Compatible Functions</a></li>
+</ul>
+</details></li>
+<li class="toctree-l1"><a class="reference internal" href="../custom-table-providers.html">Custom Table Provider</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../table-constraints.html">Table Constraint Enforcement</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../extending-operators.html">Extending Operators</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../profiling.html">Profiling Cookbook</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../query-optimizer.html">Query Optimizer</a></li>
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">Contributor Guide</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/index.html">Introduction</a></li>
+
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/communication.html">Community Communication</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/development_environment.html">Development Environment</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/architecture.html">Architecture</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/architecture/dependency-graph.html">Workspace Dependency Graph</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/testing.html">Testing</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/api-health.html">API health policy</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/howtos.html">HOWTOs</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/roadmap.html">Roadmap and Improvement Proposals</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/governance.html">Governance</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../contributor-guide/inviting.html">Inviting New Committers and PMC Members</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../contributor-guide/specification/index.html">Specifications</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../contributor-guide/specification/invariants.html">Invariants</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../contributor-guide/specification/output-field-name-semantic.html">Output field name semantics</a></li>
+</ul>
+</details></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../contributor-guide/gsoc/index.html">Google Summer of Code (GSOC)</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../contributor-guide/gsoc/gsoc_application_guidelines_2025.html">GSoC Application Guidelines (2025)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../contributor-guide/gsoc/gsoc_project_ideas_2025.html">GSoC Project Ideas (2025)</a></li>
+</ul>
+</details></li>
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">DataFusion Subprojects</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/ballista/">DataFusion Ballista</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/comet/">DataFusion Comet</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/python/">DataFusion Python</a></li>
+</ul>
+
+    
+  </div>
+</nav></div>
+    </div>
+  
+  
+  <div class="sidebar-primary-items__end sidebar-primary__section">
+      <div class="sidebar-primary-item">
+<div id="ethical-ad-placement"
+      class="flat"
+      data-ea-publisher="readthedocs"
+      data-ea-type="readthedocs-sidebar"
+      data-ea-manual="true">
+</div></div>
+  </div>
+
+
+      </div>
+      
+      <main id="main-content" class="bd-main" role="main">
+        
+        
+          <div class="bd-content">
+            <div class="bd-article-container">
+              
+              <div class="bd-header-article d-print-none">
+<div class="header-article-items header-article__inner">
+  
+    <div class="header-article-items__start">
+      
+        <div class="header-article-item">
+
+<nav aria-label="Breadcrumb" class="d-print-none">
+  <ul class="bd-breadcrumbs">
+    
+    <li class="breadcrumb-item breadcrumb-home">
+      <a href="../../index.html" class="nav-link" aria-label="Home">
+        <i class="fa-solid fa-home"></i>
+      </a>
+    </li>
+    
+    <li class="breadcrumb-item"><a href="index.html" class="nav-link">Upgrade Guides</a></li>
+    
+    <li class="breadcrumb-item active" aria-current="page"><span class="ellipsis">Upgrade Guides</span></li>
+  </ul>
+</nav>
+</div>
+      
+    </div>
+  
+  
+</div>
+</div>
+              
+              
+              
+                
+<div id="searchbox"></div>
+                <article class="bd-article">
+                  
+  <!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<section id="upgrade-guides">
+<h1>Upgrade Guides<a class="headerlink" href="#upgrade-guides" title="Link to this heading">#</a></h1>
+<section id="datafusion-46-0-0">
+<h2>DataFusion 46.0.0<a class="headerlink" href="#datafusion-46-0-0" title="Link to this heading">#</a></h2>
+<section id="use-invoke-with-args-instead-of-invoke-and-invoke-batch">
+<h3>Use <code class="docutils literal notranslate"><span class="pre">invoke_with_args</span></code> instead of <code class="docutils literal notranslate"><span class="pre">invoke()</span></code> and <code class="docutils literal notranslate"><span class="pre">invoke_batch()</span></code><a class="headerlink" href="#use-invoke-with-args-instead-of-invoke-and-invoke-batch" title="Link to this heading">#</a></h3>
+<p>DataFusion is moving to a consistent API for invoking ScalarUDFs,
+<a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_with_args"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke_with_args()</span></code></a>, and deprecating
+<a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke()</span></code></a>, <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_batch"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke_batch()</span></code></a>, and  [...]
+<p>If you see errors such as the following it means the older APIs are being used:</p>
+<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>This feature is not implemented: Function concat does not implement invoke but called
+</pre></div>
+</div>
+<p>To fix this error, use <a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.invoke_with_args"><code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke_with_args()</span></code></a> instead, as shown
+below. See <a class="reference external" href="https://github.com/apache/datafusion/pull/14876">PR 14876</a> for an example.</p>
+<p>Given existing code like this:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">ScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">SparkConcat</span><span class="w"> </span><span class="p">{</span>
+<span class="o">..</span><span class="p">.</span>
+<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_batch</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="p">[</span><span class="n">ColumnarValue</span><span class="p">],</span><span class="w"> </span><span class="n">number_rows</span><span [...]
+<span class="w">        </span><span class="k">if</span><span class="w"> </span><span class="n">args</span>
+<span class="w">            </span><span class="p">.</span><span class="n">iter</span><span class="p">()</span>
+<span class="w">            </span><span class="p">.</span><span class="n">any</span><span class="p">(</span><span class="o">|</span><span class="n">arg</span><span class="o">|</span><span class="w"> </span><span class="fm">matches!</span><span class="p">(</span><span class="n">arg</span><span class="p">.</span><span class="n">data_type</span><span class="p">(),</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">List</span><span class="p [...]
+<span class="w">        </span><span class="p">{</span>
+<span class="w">            </span><span class="n">ArrayConcat</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_batch</span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">number_rows</span><span class="p">)</span>
+<span class="w">        </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<span class="w">            </span><span class="n">ConcatFunc</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_batch</span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">number_rows</span><span class="p">)</span>
+<span class="w">        </span><span class="p">}</span>
+<span class="w">    </span><span class="p">}</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+<p>To</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">ScalarUDFImpl</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">SparkConcat</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="o">..</span><span class="p">.</span>
+<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">invoke_with_args</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">:</span><span class="w"> </span><span class="nc">ScalarFunctionArgs</span><span class="p">)</span><span class="w"> </span><span class="p">-&gt;</span><span class="w"> </span><span class="nb">Result</span>< [...]
+<span class="w">        </span><span class="k">if</span><span class="w"> </span><span class="n">args</span>
+<span class="w">            </span><span class="p">.</span><span class="n">args</span>
+<span class="w">            </span><span class="p">.</span><span class="n">iter</span><span class="p">()</span>
+<span class="w">            </span><span class="p">.</span><span class="n">any</span><span class="p">(</span><span class="o">|</span><span class="n">arg</span><span class="o">|</span><span class="w"> </span><span class="fm">matches!</span><span class="p">(</span><span class="n">arg</span><span class="p">.</span><span class="n">data_type</span><span class="p">(),</span><span class="w"> </span><span class="n">DataType</span><span class="p">::</span><span class="n">List</span><span class="p [...]
+<span class="w">        </span><span class="p">{</span>
+<span class="w">            </span><span class="n">ArrayConcat</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_with_args</span><span class="p">(</span><span class="n">args</span><span class="p">)</span>
+<span class="w">        </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<span class="w">            </span><span class="n">ConcatFunc</span><span class="p">::</span><span class="n">new</span><span class="p">().</span><span class="n">invoke_with_args</span><span class="p">(</span><span class="n">args</span><span class="p">)</span>
+<span class="w">        </span><span class="p">}</span>
+<span class="w">    </span><span class="p">}</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+</section>
+<section id="parquetexec-avroexec-csvexec-jsonexec-deprecated">
+<h3><code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroExec</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvExec</span></code>, <code class="docutils literal notranslate"><span class="pre">JsonExec</span></code> deprecated<a class="headerlink" href="#parquetexec-avroexec-csvexec-jsonexec-deprecated" title="Link to this heading">#</a></h3>
+<p>DataFusion 46 has a major change to how the built in DataSources are organized.
+Instead of individual <code class="docutils literal notranslate"><span class="pre">ExecutionPlan</span></code>s for the different file formats they now
+all use <code class="docutils literal notranslate"><span class="pre">DataSourceExec</span></code> and the format specific information is embodied in new
+traits <code class="docutils literal notranslate"><span class="pre">DataSource</span></code> and <code class="docutils literal notranslate"><span class="pre">FileSource</span></code>.</p>
+<p>Here is more information about</p>
+<ul class="simple">
+<li><p><a class="reference external" href="https://github.com/apache/datafusion/issues/13838">Design Ticket</a></p></li>
+<li><p>Change PR <a class="reference external" href="https://github.com/apache/datafusion/pull/14224">PR #14224</a></p></li>
+<li><p>Example of an Upgrade <a class="reference external" href="https://github.com/delta-io/delta-rs/pull/3261">PR in delta-rs</a></p></li>
+</ul>
+</section>
+<section id="cookbook-changes-to-parquetexecbuilder">
+<h3>Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code><a class="headerlink" href="#cookbook-changes-to-parquetexecbuilder" title="Link to this heading">#</a></h3>
+<p>Code that looks for <code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code> like this will no longer work:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">parquet_exec</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">plan</span><span class="p">.</span><span class="n">as_any</span><span class="p">().</ [...]
+<span class="w">        </span><span class="c1">// Do something with ParquetExec here</span>
+<span class="w">    </span><span class="p">}</span>
+</pre></div>
+</div>
+<p>Instead, with <code class="docutils literal notranslate"><span class="pre">DataSourceExec</span></code>, the same information is now on <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> and
+<code class="docutils literal notranslate"><span class="pre">ParquetSource</span></code>. The equivalent code is</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">datasource_exec</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">plan</span><span class="p">.</span><span class="n">as_any</span><span class="p">().</span><span class="n">dow [...]
+<span class="w">  </span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">scan_config</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">datasource_exec</span><span class="p">.</span><span class="n">data_source</span><span class="p">().</span><span class="n">as_any</span><span class="p">().</span><span cl [...]
+<span class="w">    </span><span class="c1">// FileGroups, and other information is on the FileScanConfig</span>
+<span class="w">    </span><span class="c1">// parquet</span>
+<span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">parquet_source</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scan_config</span><span class="p">.</span><span class="n">file_source</span><span class="p">.</span><span class="n">as_any</span><span class="p">().</span><span cla [...]
+<span class="w">    </span><span class="p">{</span>
+<span class="w">      </span><span class="c1">// Information on PruningPredicates and parquet options are here</span>
+<span class="w">    </span><span class="p">}</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+</section>
+<section id="id1">
+<h3>Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code><a class="headerlink" href="#id1" title="Link to this heading">#</a></h3>
+<p>Likewise code that builds <code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code> using the <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code> such as
+the following must be changed:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="k">mut</span><span class="w"> </span><span class="n">exec_plan_builder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetExecBuilder</span><span class="p">::</span><span class="n">new</span><span class="p">(</span>
+<span class="w">    </span><span class="n">FileScanConfig</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">log_store</span><span class="p">.</span><span class="n">object_store_url</span><span class="p">(),</span><span class="w"> </span><span class="n">file_schema</span><span class="p">)</span>
+<span class="w">        </span><span class="p">.</span><span class="n">with_projection</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">projection</span><span class="p">.</span><span class="n">cloned</span><span class="p">())</span>
+<span class="w">        </span><span class="p">.</span><span class="n">with_limit</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">limit</span><span class="p">)</span>
+<span class="w">        </span><span class="p">.</span><span class="n">with_table_partition_cols</span><span class="p">(</span><span class="n">table_partition_cols</span><span class="p">),</span>
+<span class="p">)</span>
+<span class="p">.</span><span class="n">with_schema_adapter_factory</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">DeltaSchemaAdapterFactory</span><span class="w"> </span><span class="p">{}))</span>
+<span class="p">.</span><span class="n">with_table_parquet_options</span><span class="p">(</span><span class="n">parquet_options</span><span class="p">);</span>
+
+<span class="c1">// Add filter</span>
+<span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">predicate</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">logical_filter</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="n">config</span><span class="p">.</span><span class="n">enable_parquet_pushdown</span><span class="w"> </span><span class="p">{</span>
+<span class="w">        </span><span class="n">exec_plan_builder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exec_plan_builder</span><span class="p">.</span><span class="n">with_predicate</span><span class="p">(</span><span class="n">predicate</span><span class="p">);</span>
+<span class="w">    </span><span class="p">}</span>
+<span class="p">};</span>
+</pre></div>
+</div>
+<p>New code should use <code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> to build the appropriate <code class="docutils literal notranslate"><span class="pre">DataSourceExec</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="k">mut</span><span class="w"> </span><span class="n">file_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetSource</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">parquet_options</span><span class="p">)</span>
+<span class="w">    </span><span class="p">.</span><span class="n">with_schema_adapter_factory</span><span class="p">(</span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">DeltaSchemaAdapterFactory</span><span class="w"> </span><span class="p">{}));</span>
+
+<span class="c1">// Add filter</span>
+<span class="k">if</span><span class="w"> </span><span class="kd">let</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">predicate</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">logical_filter</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="k">if</span><span class="w"> </span><span class="n">config</span><span class="p">.</span><span class="n">enable_parquet_pushdown</span><span class="w"> </span><span class="p">{</span>
+<span class="w">        </span><span class="n">file_source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_source</span><span class="p">.</span><span class="n">with_predicate</span><span class="p">(</span><span class="n">predicate</span><span class="p">);</span>
+<span class="w">    </span><span class="p">}</span>
+<span class="p">};</span>
+
+<span class="kd">let</span><span class="w"> </span><span class="n">file_scan_config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfig</span><span class="p">::</span><span class="n">new</span><span class="p">(</span>
+<span class="w">    </span><span class="bp">self</span><span class="p">.</span><span class="n">log_store</span><span class="p">.</span><span class="n">object_store_url</span><span class="p">(),</span>
+<span class="w">    </span><span class="n">file_schema</span><span class="p">,</span>
+<span class="w">    </span><span class="n">Arc</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">file_source</span><span class="p">),</span>
+<span class="p">)</span>
+<span class="p">.</span><span class="n">with_statistics</span><span class="p">(</span><span class="n">stats</span><span class="p">)</span>
+<span class="p">.</span><span class="n">with_projection</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">projection</span><span class="p">.</span><span class="n">cloned</span><span class="p">())</span>
+<span class="p">.</span><span class="n">with_limit</span><span class="p">(</span><span class="bp">self</span><span class="p">.</span><span class="n">limit</span><span class="p">)</span>
+<span class="p">.</span><span class="n">with_table_partition_cols</span><span class="p">(</span><span class="n">table_partition_cols</span><span class="p">);</span>
+
+<span class="c1">// Build the actual scan like this</span>
+<span class="n">parquet_scan</span><span class="p">:</span><span class="w"> </span><span class="nc">file_scan_config</span><span class="p">.</span><span class="n">build</span><span class="p">(),</span>
+</pre></div>
+</div>
+</section>
+<section id="datafusion-cli-no-longer-automatically-unescapes-strings">
+<h3><code class="docutils literal notranslate"><span class="pre">datafusion-cli</span></code> no longer automatically unescapes strings<a class="headerlink" href="#datafusion-cli-no-longer-automatically-unescapes-strings" title="Link to this heading">#</a></h3>
+<p><code class="docutils literal notranslate"><span class="pre">datafusion-cli</span></code> previously would incorrectly unescape string literals (see <a class="reference external" href="https://github.com/apache/datafusion/issues/13286">ticket</a> for more details).</p>
+<p>To escape <code class="docutils literal notranslate"><span class="pre">'</span></code> in SQL literals, use <code class="docutils literal notranslate"><span class="pre">''</span></code>:</p>
+<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="s1">&#39;it&#39;&#39;s escaped&#39;</span><span class="p">;</span>
+<span class="o">+</span><span class="c1">----------------------+</span>
+<span class="o">|</span><span class="w"> </span><span class="n">Utf8</span><span class="p">(</span><span class="ss">&quot;it&#39;s escaped&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<span class="o">+</span><span class="c1">----------------------+</span>
+<span class="o">|</span><span class="w"> </span><span class="n">it</span><span class="err">&#39;</span><span class="n">s</span><span class="w"> </span><span class="n">escaped</span><span class="w">         </span><span class="o">|</span>
+<span class="o">+</span><span class="c1">----------------------+</span>
+<span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
+</pre></div>
+</div>
+<p>To include special characters (such as newlines via <code class="docutils literal notranslate"><span class="pre">\n</span></code>) you can use an <code class="docutils literal notranslate"><span class="pre">E</span></code> literal string. For example</p>
+<div class="highlight-sql notranslate"><div class="highlight"><pre><span></span><span class="o">&gt;</span><span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="s1">&#39;foo\nbar&#39;</span><span class="p">;</span>
+<span class="o">+</span><span class="c1">------------------+</span>
+<span class="o">|</span><span class="w"> </span><span class="n">Utf8</span><span class="p">(</span><span class="ss">&quot;foo\nbar&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<span class="o">+</span><span class="c1">------------------+</span>
+<span class="o">|</span><span class="w"> </span><span class="n">foo</span><span class="err">\</span><span class="n">nbar</span><span class="w">         </span><span class="o">|</span>
+<span class="o">+</span><span class="c1">------------------+</span>
+<span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="n">fetched</span><span class="p">.</span>
+<span class="n">Elapsed</span><span class="w"> </span><span class="mi">0</span><span class="p">.</span><span class="mi">005</span><span class="w"> </span><span class="n">seconds</span><span class="p">.</span>
+</pre></div>
+</div>
+</section>
+<section id="changes-to-array-scalar-function-signatures">
+<h3>Changes to array scalar function signatures<a class="headerlink" href="#changes-to-array-scalar-function-signatures" title="Link to this heading">#</a></h3>
+<p>DataFusion 46 has changed the way scalar array function signatures are
+declared. Previously, functions needed to select from a list of predefined
+signatures within the <code class="docutils literal notranslate"><span class="pre">ArrayFunctionSignature</span></code> enum. Now the signatures
+can be defined via a <code class="docutils literal notranslate"><span class="pre">Vec</span></code> of pseudo-types, which each correspond to a
+single argument. Those pseudo-types are the variants of the
+<code class="docutils literal notranslate"><span class="pre">ArrayFunctionArgument</span></code> enum and are as follows:</p>
+<ul class="simple">
+<li><p><code class="docutils literal notranslate"><span class="pre">Array</span></code>: An argument of type List/LargeList/FixedSizeList. All Array
+arguments must be coercible to the same type.</p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">Element</span></code>: An argument that is coercible to the inner type of the <code class="docutils literal notranslate"><span class="pre">Array</span></code>
+arguments.</p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">Index</span></code>: An <code class="docutils literal notranslate"><span class="pre">Int64</span></code> argument.</p></li>
+</ul>
+<p>Each of the old variants can be converted to the new format as follows:</p>
+<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElement)</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">],</span>
+<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">ListCoercion</span><span class="p">::</span><span class="n">FixedSizedListToList</span><span class="p">),</span>
+<span class="p">});</span>
+</pre></div>
+</div>
+<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ElementAndArray)</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">],</span>
+<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">Some</span><span class="p">(</span><span class="n">ListCoercion</span><span class="p">::</span><span class="n">FixedSizedListToList</span><span class="p">),</span>
+<span class="p">});</span>
+</pre></div>
+</div>
+<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndIndex)</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Index</span><span class="p">],</span>
+<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
+<span class="p">});</span>
+</pre></div>
+</div>
+<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::ArrayAndElementAndOptionalIndex)</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">OneOf</span><span class="p">(</span><span class="fm">vec!</span><span class="p">[</span>
+<span class="w">    </span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
+<span class="w">        </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span><span class="w"> </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">],</span>
+<span class="w">        </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
+<span class="w">    </span><span class="p">}),</span>
+<span class="w">    </span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
+<span class="w">        </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span>
+<span class="w">            </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">,</span>
+<span class="w">            </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Element</span><span class="p">,</span>
+<span class="w">            </span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Index</span><span class="p">,</span>
+<span class="w">        </span><span class="p">],</span>
+<span class="w">        </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
+<span class="w">    </span><span class="p">}),</span>
+<span class="p">]);</span>
+</pre></div>
+</div>
+<p><code class="docutils literal notranslate"><span class="pre">TypeSignature::ArraySignature(ArrayFunctionSignature::Array)</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="n">TypeSignature</span><span class="p">::</span><span class="n">ArraySignature</span><span class="p">(</span><span class="n">ArrayFunctionSignature</span><span class="p">::</span><span class="n">Array</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="n">arguments</span><span class="p">:</span><span class="w"> </span><span class="nc">vec</span><span class="o">!</span><span class="p">[</span><span class="n">ArrayFunctionArgument</span><span class="p">::</span><span class="n">Array</span><span class="p">],</span>
+<span class="w">    </span><span class="n">array_coercion</span><span class="p">:</span><span class="w"> </span><span class="nb">None</span><span class="p">,</span>
+<span class="p">});</span>
+</pre></div>
+</div>
+<p>Alternatively, you can switch to using one of the following functions which
+take care of constructing the <code class="docutils literal notranslate"><span class="pre">TypeSignature</span></code> for you:</p>
+<ul class="simple">
+<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array_and_element</span></code></p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array_and_element_and_optional_index</span></code></p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array_and_index</span></code></p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">Signature::array</span></code></p></li>
+</ul>
+</section>
+</section>
+</section>
+
+
+                </article>
+              
+              
+              
+              
+              
+                <footer class="prev-next-footer d-print-none">
+                  
+<div class="prev-next-area">
+    <a class="left-prev"
+       href="47.0.0.html"
+       title="previous page">
+      <i class="fa-solid fa-angle-left"></i>
+      <div class="prev-next-info">
+        <p class="prev-next-subtitle">previous</p>
+        <p class="prev-next-title">Upgrade Guides</p>
+      </div>
+    </a>
+    <a class="right-next"
+       href="../extensions.html"
+       title="next page">
+      <div class="prev-next-info">
+        <p class="prev-next-subtitle">next</p>
+        <p class="prev-next-title">Extensions List</p>
+      </div>
+      <i class="fa-solid fa-angle-right"></i>
+    </a>
+</div>
+                </footer>
+              
+            </div>
+            
+            
+              
+                <dialog id="pst-secondary-sidebar-modal"></dialog>
+                <div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
+
+
+  <div class="sidebar-secondary-item">
+<div
+    id="pst-page-navigation-heading-2"
+    class="page-toc tocsection onthispage">
+    <i class="fa-solid fa-list"></i> On this page
+  </div>
+  <nav class="bd-toc-nav page-toc" aria-labelledby="pst-page-navigation-heading-2">
+    <ul class="visible nav section-nav flex-column">
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-46-0-0">DataFusion 46.0.0</a><ul class="nav section-nav flex-column">
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#use-invoke-with-args-instead-of-invoke-and-invoke-batch">Use <code class="docutils literal notranslate"><span class="pre">invoke_with_args</span></code> instead of <code class="docutils literal notranslate"><span class="pre">invoke()</span></code> and <code class="docutils literal notranslate"><span class="pre">invoke_batch()</span></code></a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#parquetexec-avroexec-csvexec-jsonexec-deprecated"><code class="docutils literal notranslate"><span class="pre">ParquetExec</span></code>, <code class="docutils literal notranslate"><span class="pre">AvroExec</span></code>, <code class="docutils literal notranslate"><span class="pre">CsvExec</span></code>, <code class="docutils literal notranslate"><span class="pre">JsonExec</span></code> deprecated</a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#cookbook-changes-to-parquetexecbuilder">Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code></a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">Cookbook: Changes to <code class="docutils literal notranslate"><span class="pre">ParquetExecBuilder</span></code></a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-cli-no-longer-automatically-unescapes-strings"><code class="docutils literal notranslate"><span class="pre">datafusion-cli</span></code> no longer automatically unescapes strings</a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#changes-to-array-scalar-function-signatures">Changes to array scalar function signatures</a></li>
+</ul>
+</li>
+</ul>
+  </nav></div>
+
+  <div class="sidebar-secondary-item">
+
+  
+  <div class="tocsection editthispage">
+    <a href="https://github.com/apache/arrow-datafusion/edit/main/docs/source/library-user-guide/upgrading/46.0.0.md">
+      <i class="fa-solid fa-pencil"></i>
+      
+      
+        
+          Edit on GitHub
+        
+      
+    </a>
+  </div>
+</div>
+
+  <div class="sidebar-secondary-item">
+  <div role="note" aria-label="source link">
+    <h3>This Page</h3>
+    <ul class="this-page-menu">
+      <li><a href="../../_sources/library-user-guide/upgrading/46.0.0.md.txt"
+            rel="nofollow">Show Source</a></li>
+    </ul>
+   </div></div>
+
+</div></div>
+              
+            
+          </div>
+          <footer class="bd-footer-content">
+            
+          </footer>
+        
+      </main>
+    </div>
+  </div>
+  
+  <!-- Scripts loaded after <body> so the DOM is not blocked -->
+  <script defer src="../../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf"></script>
+<script defer src="../../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf"></script>
+
+<!-- Based on pydata_sphinx_theme/footer.html -->
+<footer class="footer mt-5 mt-md-0">
+  <div class="container">
+    
+    <div class="footer-item">
+      <p>Apache DataFusion, Apache, the Apache feather logo, and the Apache DataFusion project logo</p>
+      <p>are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
+    </div>
+  </div>
+</footer>
+
+
+  </body>
+</html>
\ No newline at end of file
diff --git a/library-user-guide/functions/spark.html b/library-user-guide/upgrading/47.0.0.html
similarity index 57%
copy from library-user-guide/functions/spark.html
copy to library-user-guide/upgrading/47.0.0.html
index 8cbfd8c12e..4775375ed5 100644
--- a/library-user-guide/functions/spark.html
+++ b/library-user-guide/upgrading/47.0.0.html
@@ -8,7 +8,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
 
-    <title>Spark Compatible Functions &#8212; Apache DataFusion  documentation</title>
+    <title>Upgrade Guides &#8212; Apache DataFusion  documentation</title>
   
   
   
@@ -42,12 +42,12 @@
     <script src="../../_static/documentation_options.js?v=5929fcd5"></script>
     <script src="../../_static/doctools.js?v=fd6eb6e6"></script>
     <script src="../../_static/sphinx_highlight.js?v=6ffebe34"></script>
-    <script>DOCUMENTATION_OPTIONS.pagename = 'library-user-guide/functions/spark';</script>
+    <script>DOCUMENTATION_OPTIONS.pagename = 'library-user-guide/upgrading/47.0.0';</script>
     <link rel="icon" href="../../_static/favicon.svg"/>
     <link rel="index" title="Index" href="../../genindex.html" />
     <link rel="search" title="Search" href="../../search.html" />
-    <link rel="next" title="Custom Table Provider" href="../custom-table-providers.html" />
-    <link rel="prev" title="Adding User Defined Functions: Scalar/Window/Aggregate/Table Functions" href="adding-udfs.html" />
+    <link rel="next" title="Upgrade Guides" href="46.0.0.html" />
+    <link rel="prev" title="Upgrade Guides" href="48.0.0.html" />
   <meta name="viewport" content="width=device-width, initial-scale=1"/>
   <meta name="docsearch:language" content="en"/>
   <meta name="docsearch:version" content="" />
@@ -278,7 +278,18 @@
 <p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
 <ul class="current nav bd-sidenav">
 <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../upgrading.html">Upgrade Guides</a></li>
+<li class="toctree-l1 current active has-children"><a class="reference internal" href="index.html">Upgrade Guides</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul class="current">
+<li class="toctree-l2"><a class="reference internal" href="53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2"><a class="reference internal" href="48.0.0.html">DataFusion 48.0.0</a></li>
+<li class="toctree-l2 current active"><a class="current reference internal" href="#">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
 <li class="toctree-l1"><a class="reference internal" href="../extensions.html">Extensions List</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../using-the-sql-api.html">Using the SQL API</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../extending-sql.html">Extending SQL Syntax</a></li>
@@ -287,9 +298,9 @@
 
 <li class="toctree-l1"><a class="reference internal" href="../building-logical-plans.html">Building Logical Plans</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../catalogs.html">Catalogs, Schemas, and Tables</a></li>
-<li class="toctree-l1 current active has-children"><a class="reference internal" href="index.html">Functions</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul class="current">
-<li class="toctree-l2"><a class="reference internal" href="adding-udfs.html">Adding User Defined Functions: Scalar/Window/Aggregate/Table Functions</a></li>
-<li class="toctree-l2 current active"><a class="current reference internal" href="#">Spark Compatible Functions</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../functions/index.html">Functions</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../functions/adding-udfs.html">Adding User Defined Functions: Scalar/Window/Aggregate/Table Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../functions/spark.html">Spark Compatible Functions</a></li>
 </ul>
 </details></li>
 <li class="toctree-l1"><a class="reference internal" href="../custom-table-providers.html">Custom Table Provider</a></li>
@@ -371,9 +382,9 @@
       </a>
     </li>
     
-    <li class="breadcrumb-item"><a href="index.html" class="nav-link">Functions</a></li>
+    <li class="breadcrumb-item"><a href="index.html" class="nav-link">Upgrade Guides</a></li>
     
-    <li class="breadcrumb-item active" aria-current="page"><span class="ellipsis">Spark Compatible Functions</span></li>
+    <li class="breadcrumb-item active" aria-current="page"><span class="ellipsis">Upgrade Guides</span></li>
   </ul>
 </nav>
 </div>
@@ -408,11 +419,88 @@
   specific language governing permissions and limitations
   under the License.
 -->
-<section id="spark-compatible-functions">
-<h1>Spark Compatible Functions<a class="headerlink" href="#spark-compatible-functions" title="Link to this heading">#</a></h1>
-<p>The <a class="reference external" href="https://crates.io/crates/datafusion-spark"><code class="docutils literal notranslate"><span class="pre">datafusion-spark</span></code></a> crate provides Apache Spark-compatible expressions for
-use with DataFusion.</p>
-<p>Please see the documentation for the <a class="reference external" href="https://docs.rs/datafusion-spark/latest/datafusion_spark/"><code class="docutils literal notranslate"><span class="pre">datafusion-spark</span></code> crate</a> for more details.</p>
+<section id="upgrade-guides">
+<h1>Upgrade Guides<a class="headerlink" href="#upgrade-guides" title="Link to this heading">#</a></h1>
+<section id="datafusion-47-0-0">
+<h2>DataFusion 47.0.0<a class="headerlink" href="#datafusion-47-0-0" title="Link to this heading">#</a></h2>
+<p>This section calls out some of the major changes in the <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code> release of DataFusion.</p>
+<p>Here are some example upgrade PRs that demonstrate changes required when upgrading from DataFusion 46.0.0:</p>
+<ul class="simple">
+<li><p><a class="reference external" href="https://github.com/delta-io/delta-rs/pull/3378">delta-rs Upgrade to <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code></a></p></li>
+<li><p><a class="reference external" href="https://github.com/apache/datafusion-comet/pull/1563">DataFusion Comet Upgrade to <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code></a></p></li>
+<li><p><a class="reference external" href="https://github.com/lakehq/sail/pull/434">Sail Upgrade to <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code></a></p></li>
+</ul>
+<section id="upgrades-to-arrow-rs-and-arrow-parquet-55-0-0-and-object-store-0-12-0">
+<h3>Upgrades to <code class="docutils literal notranslate"><span class="pre">arrow-rs</span></code> and <code class="docutils literal notranslate"><span class="pre">arrow-parquet</span></code> 55.0.0 and <code class="docutils literal notranslate"><span class="pre">object_store</span></code> 0.12.0<a class="headerlink" href="#upgrades-to-arrow-rs-and-arrow-parquet-55-0-0-and-object-store-0-12-0" title="Link to this heading">#</a></h3>
+<p>Several APIs are changed in the underlying arrow and parquet libraries to use a
+<code class="docutils literal notranslate"><span class="pre">u64</span></code> instead of <code class="docutils literal notranslate"><span class="pre">usize</span></code> to better support WASM (See <a class="reference external" href="https://github.com/apache/arrow-rs/pull/7371">#7371</a> and [#6961])</p>
+<p>Additionally <code class="docutils literal notranslate"><span class="pre">ObjectStore::list</span></code> and <code class="docutils literal notranslate"><span class="pre">ObjectStore::list_with_offset</span></code> have been changed to return <code class="docutils literal notranslate"><span class="pre">static</span></code> lifetimes (See <a class="reference external" href="https://github.com/apache/arrow-rs/pull/6619">#6619</a>)</p>
+<p>This requires converting from <code class="docutils literal notranslate"><span class="pre">usize</span></code> to <code class="docutils literal notranslate"><span class="pre">u64</span></code> occasionally as well as changes to <code class="docutils literal notranslate"><span class="pre">ObjectStore</span></code> implementations such as</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="k">impl</span><span class="w"> </span><span class="n">Objectstore</span><span class="w"> </span><span class="p">{</span>
+<span class="w">    </span><span class="o">..</span><span class="p">.</span>
+<span class="w">    </span><span class="c1">// The range is now a u64 instead of usize</span>
+<span class="w">    </span><span class="k">async</span><span class="w"> </span><span class="k">fn</span><span class="w"> </span><span class="nf">get_range</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">location</span><span class="p">:</span><span class="w"> </span><span class="kp">&amp;</span><span class="nc">Path</span><span class="p">,</span><span class="w"> </span><span class="n">ran [...]
+<span class="w">        </span><span class="bp">self</span><span class="p">.</span><span class="n">inner</span><span class="p">.</span><span class="n">get_range</span><span class="p">(</span><span class="n">location</span><span class="p">,</span><span class="w"> </span><span class="n">range</span><span class="p">).</span><span class="k">await</span>
+<span class="w">    </span><span class="p">}</span>
+<span class="w">    </span><span class="o">..</span><span class="p">.</span>
+<span class="w">    </span><span class="c1">// the lifetime is now &#39;static instead of `_ (meaning the captured closure can&#39;t contain references)</span>
+<span class="w">    </span><span class="c1">// (this also applies to list_with_offset)</span>
+<span class="w">    </span><span class="k">fn</span><span class="w"> </span><span class="nf">list</span><span class="p">(</span><span class="o">&amp;</span><span class="bp">self</span><span class="p">,</span><span class="w"> </span><span class="n">prefix</span><span class="p">:</span><span class="w"> </span><span class="nb">Option</span><span class="o">&lt;&amp;</span><span class="n">Path</span><span class="o">&gt;</span><span class="p">)</span><span class="w"> </span><span class="p">-&g [...]
+<span class="w">        </span><span class="bp">self</span><span class="p">.</span><span class="n">inner</span><span class="p">.</span><span class="n">list</span><span class="p">(</span><span class="n">prefix</span><span class="p">)</span>
+<span class="w">    </span><span class="p">}</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+<p>The <code class="docutils literal notranslate"><span class="pre">ParquetObjectReader</span></code> has been updated to no longer require the object size
+(it can be fetched using a single suffix request). See <a class="reference external" href="https://github.com/apache/arrow-rs/pull/7334">#7334</a> for details</p>
+<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">46.0.0</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">meta</span><span class="p">:</span><span class="w"> </span><span class="nc">ObjectMeta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">..</span><span class="p">.;</span>
+<span class="kd">let</span><span class="w"> </span><span class="n">reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetObjectReader</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">meta</span><span class="p">);</span>
+</pre></div>
+</div>
+<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">meta</span><span class="p">:</span><span class="w"> </span><span class="nc">ObjectMeta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">..</span><span class="p">.;</span>
+<span class="kd">let</span><span class="w"> </span><span class="n">reader</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ParquetObjectReader</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">store</span><span class="p">,</span><span class="w"> </span><span class="n">location</span><span class="p">)</span>
+<span class="w">  </span><span class="p">.</span><span class="n">with_file_size</span><span class="p">(</span><span class="n">meta</span><span class="p">.</span><span class="n">size</span><span class="p">);</span>
+</pre></div>
+</div>
+</section>
+<section id="displayformattype-treerender">
+<h3><code class="docutils literal notranslate"><span class="pre">DisplayFormatType::TreeRender</span></code><a class="headerlink" href="#displayformattype-treerender" title="Link to this heading">#</a></h3>
+<p>DataFusion now supports <a class="reference external" href="https://datafusion.apache.org/user-guide/sql/explain.html#tree-format-default"><code class="docutils literal notranslate"><span class="pre">tree</span></code> style explain plans</a>. Implementations of
+<code class="docutils literal notranslate"><span class="pre">Executionplan</span></code> must also provide a description in the
+<code class="docutils literal notranslate"><span class="pre">DisplayFormatType::TreeRender</span></code> format. This can be the same as the existing
+<code class="docutils literal notranslate"><span class="pre">DisplayFormatType::Default</span></code>.</p>
+</section>
+<section id="removed-deprecated-apis">
+<h3>Removed Deprecated APIs<a class="headerlink" href="#removed-deprecated-apis" title="Link to this heading">#</a></h3>
+<p>Several APIs have been removed in this release. These were either deprecated
+previously or were hard to use correctly such as the multiple different
+<code class="docutils literal notranslate"><span class="pre">ScalarUDFImpl::invoke*</span></code> APIs. See <a class="reference external" href="https://github.com/apache/datafusion/pull/15130">#15130</a>, <a class="reference external" href="https://github.com/apache/datafusion/pull/15123">#15123</a>, and <a class="reference external" href="https://github.com/apache/datafusion/pull/15027">#15027</a> for more
+details.</p>
+</section>
+<section id="filescanconfig-filescanconfigbuilder">
+<h3><code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> –&gt; <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code><a class="headerlink" href="#filescanconfig-filescanconfigbuilder" title="Link to this heading">#</a></h3>
+<p>Previously, <code class="docutils literal notranslate"><span class="pre">FileScanConfig::build()</span></code> directly created ExecutionPlans. In
+DataFusion 47.0.0 this has been changed to use <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code>. See
+<a class="reference external" href="https://github.com/apache/datafusion/pull/15352">#15352</a> for details.</p>
+<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">46.0.0</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">plan</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfig</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">url</span><span class="p">,</span><span class="w"> </span><span class="n">schema</span><span class="p">,</span><span class="w"> </spa [...]
+<span class="w">  </span><span class="p">.</span><span class="n">with_statistics</span><span class="p">(</span><span class="n">stats</span><span class="p">)</span>
+<span class="w">  </span><span class="o">..</span><span class="p">.</span>
+<span class="w">  </span><span class="p">.</span><span class="n">build</span><span class="p">()</span>
+</pre></div>
+</div>
+<p>Pattern in DataFusion <code class="docutils literal notranslate"><span class="pre">47.0.0</span></code>:</p>
+<div class="highlight-rust notranslate"><div class="highlight"><pre><span></span><span class="kd">let</span><span class="w"> </span><span class="n">config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FileScanConfigBuilder</span><span class="p">::</span><span class="n">new</span><span class="p">(</span><span class="n">url</span><span class="p">,</span><span class="w"> </span><span class="n">Arc</span><span class="p">::</span><span class="n" [...]
+<span class="w">  </span><span class="p">.</span><span class="n">with_statistics</span><span class="p">(</span><span class="n">stats</span><span class="p">)</span>
+<span class="w">  </span><span class="o">..</span><span class="p">.</span>
+<span class="w">  </span><span class="p">.</span><span class="n">build</span><span class="p">();</span>
+<span class="kd">let</span><span class="w"> </span><span class="n">scan</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DataSourceExec</span><span class="p">::</span><span class="n">from_data_source</span><span class="p">(</span><span class="n">config</span><span class="p">);</span>
+</pre></div>
+</div>
+</section>
+</section>
 </section>
 
 
@@ -426,20 +514,20 @@ use with DataFusion.</p>
                   
 <div class="prev-next-area">
     <a class="left-prev"
-       href="adding-udfs.html"
+       href="48.0.0.html"
        title="previous page">
       <i class="fa-solid fa-angle-left"></i>
       <div class="prev-next-info">
         <p class="prev-next-subtitle">previous</p>
-        <p class="prev-next-title">Adding User Defined Functions: Scalar/Window/Aggregate/Table Functions</p>
+        <p class="prev-next-title">Upgrade Guides</p>
       </div>
     </a>
     <a class="right-next"
-       href="../custom-table-providers.html"
+       href="46.0.0.html"
        title="next page">
       <div class="prev-next-info">
         <p class="prev-next-subtitle">next</p>
-        <p class="prev-next-title">Custom Table Provider</p>
+        <p class="prev-next-title">Upgrade Guides</p>
       </div>
       <i class="fa-solid fa-angle-right"></i>
     </a>
@@ -455,10 +543,28 @@ use with DataFusion.</p>
 
 
   <div class="sidebar-secondary-item">
+<div
+    id="pst-page-navigation-heading-2"
+    class="page-toc tocsection onthispage">
+    <i class="fa-solid fa-list"></i> On this page
+  </div>
+  <nav class="bd-toc-nav page-toc" aria-labelledby="pst-page-navigation-heading-2">
+    <ul class="visible nav section-nav flex-column">
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#datafusion-47-0-0">DataFusion 47.0.0</a><ul class="nav section-nav flex-column">
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#upgrades-to-arrow-rs-and-arrow-parquet-55-0-0-and-object-store-0-12-0">Upgrades to <code class="docutils literal notranslate"><span class="pre">arrow-rs</span></code> and <code class="docutils literal notranslate"><span class="pre">arrow-parquet</span></code> 55.0.0 and <code class="docutils literal notranslate"><span class="pre">object_store</span></code> 0.12.0</a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#displayformattype-treerender"><code class="docutils literal notranslate"><span class="pre">DisplayFormatType::TreeRender</span></code></a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#removed-deprecated-apis">Removed Deprecated APIs</a></li>
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#filescanconfig-filescanconfigbuilder"><code class="docutils literal notranslate"><span class="pre">FileScanConfig</span></code> –&gt; <code class="docutils literal notranslate"><span class="pre">FileScanConfigBuilder</span></code></a></li>
+</ul>
+</li>
+</ul>
+  </nav></div>
+
+  <div class="sidebar-secondary-item">
 
   
   <div class="tocsection editthispage">
-    <a href="https://github.com/apache/arrow-datafusion/edit/main/docs/source/library-user-guide/functions/spark.md">
+    <a href="https://github.com/apache/arrow-datafusion/edit/main/docs/source/library-user-guide/upgrading/47.0.0.md">
       <i class="fa-solid fa-pencil"></i>
       
       
@@ -474,7 +580,7 @@ use with DataFusion.</p>
   <div role="note" aria-label="source link">
     <h3>This Page</h3>
     <ul class="this-page-menu">
-      <li><a href="../../_sources/library-user-guide/functions/spark.md.txt"
+      <li><a href="../../_sources/library-user-guide/upgrading/47.0.0.md.txt"
             rel="nofollow">Show Source</a></li>
     </ul>
    </div></div>
diff --git a/library-user-guide/upgrading/48.0.0.html b/library-user-guide/upgrading/48.0.0.html
new file mode 100644
index 0000000000..ba695271a9
--- /dev/null
+++ b/library-user-guide/upgrading/48.0.0.html
@@ -0,0 +1,727 @@
+
+<!DOCTYPE html>
+
+
+<html lang="en" data-content_root="../../" >
+
+  <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
+
+    <title>Upgrade Guides &#8212; Apache DataFusion  documentation</title>
+  
+  
+  
+  <script data-cfasync="false">
+    document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
+    document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
+  </script>
+  <!--
+    this give us a css class that will be invisible only if js is disabled
+  -->
+  <noscript>
+    <style>
+      .pst-js-only { display: none !important; }
+
+    </style>
+  </noscript>
+  
+  <!-- Loaded before other Sphinx assets -->
+  <link href="../../_static/styles/theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
+<link href="../../_static/styles/pydata-sphinx-theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
+
+    <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=8f2a1f02" />
+    <link rel="stylesheet" type="text/css" href="../../_static/theme_overrides.css?v=d08b24aa" />
+  
+  <!-- So that users can add custom icons -->
+  <script src="../../_static/scripts/fontawesome.js?digest=8878045cc6db502f8baf"></script>
+  <!-- Pre-loaded scripts that we'll load fully later -->
+  <link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf" />
+<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf" />
+
+    <script src="../../_static/documentation_options.js?v=5929fcd5"></script>
+    <script src="../../_static/doctools.js?v=fd6eb6e6"></script>
+    <script src="../../_static/sphinx_highlight.js?v=6ffebe34"></script>
+    <script>DOCUMENTATION_OPTIONS.pagename = 'library-user-guide/upgrading/48.0.0';</script>
+    <link rel="icon" href="../../_static/favicon.svg"/>
+    <link rel="index" title="Index" href="../../genindex.html" />
+    <link rel="search" title="Search" href="../../search.html" />
+    <link rel="next" title="Upgrade Guides" href="47.0.0.html" />
+    <link rel="prev" title="Upgrade Guides" href="48.0.1.html" />
+  <meta name="viewport" content="width=device-width, initial-scale=1"/>
+  <meta name="docsearch:language" content="en"/>
+  <meta name="docsearch:version" content="" />
+  </head>
+  
+  
+  <body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">
+
+  
+  
+  <div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>
+  
+  <div id="pst-scroll-pixel-helper"></div>
+  
+  <button type="button" class="btn rounded-pill" id="pst-back-to-top">
+    <i class="fa-solid fa-arrow-up"></i>Back to top</button>
+
+  
+  <dialog id="pst-search-dialog">
+    
+<form class="bd-search d-flex align-items-center"
+      action="../../search.html"
+      method="get">
+  <i class="fa-solid fa-magnifying-glass"></i>
+  <input type="search"
+         class="form-control"
+         name="q"
+         placeholder="Search the docs ..."
+         aria-label="Search the docs ..."
+         autocomplete="off"
+         autocorrect="off"
+         autocapitalize="off"
+         spellcheck="false"/>
+  <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
+  </dialog>
+
+  <div class="pst-async-banner-revealer d-none">
+  <aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
+</div>
+
+  
+    <header class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
+<div class="bd-header__inner bd-page-width">
+  <button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation">
+    <span class="fa-solid fa-bars"></span>
+  </button>
+  
+  
+  <div class="col-lg-3 navbar-header-items__start">
+    
+      <div class="navbar-item">
+
+  
+    
+  
+
+<a class="navbar-brand logo" href="../../index.html">
+  
+  
+  
+  
+  
+    
+    
+      
+    
+    
+    <img src="../../_static/original.svg" class="logo__image only-light" alt="Apache DataFusion  documentation - Home"/>
+    <img src="../../_static/original_dark.svg" class="logo__image only-dark pst-js-only" alt="Apache DataFusion  documentation - Home"/>
+  
+  
+</a></div>
+    
+  </div>
+  
+  <div class="col-lg-9 navbar-header-items">
+    
+    
+    <div class="navbar-header-items__end">
+      
+        <div class="navbar-item navbar-persistent--container">
+          
+
+<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <span class="search-button__default-text">Search</span>
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
+</button>
+        </div>
+      
+      
+        <div class="navbar-item">
+
+<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode"  data-bs-placement="bottom" data-bs-toggle="tooltip">
+  <i class="theme-switch fa-solid fa-sun                fa-lg" data-mode="light" title="Light"></i>
+  <i class="theme-switch fa-solid fa-moon               fa-lg" data-mode="dark"  title="Dark"></i>
+  <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"  title="System Settings"></i>
+</button></div>
+      
+    </div>
+    
+  </div>
+  
+  
+    <div class="navbar-persistent--mobile">
+
+<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <span class="search-button__default-text">Search</span>
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
+</button>
+    </div>
+  
+
+  
+    <button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page">
+      <span class="fa-solid fa-outdent"></span>
+    </button>
+  
+</div>
+
+    </header>
+  
+
+  <div class="bd-container">
+    <div class="bd-container__inner bd-page-width">
+      
+      
+      
+      <dialog id="pst-primary-sidebar-modal"></dialog>
+      <div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
+        
+
+  
+  <div class="sidebar-header-items sidebar-primary__section">
+    
+    
+    
+    
+      <div class="sidebar-header-items__end">
+        
+          <div class="navbar-item">
+
+<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode"  data-bs-placement="bottom" data-bs-toggle="tooltip">
+  <i class="theme-switch fa-solid fa-sun                fa-lg" data-mode="light" title="Light"></i>
+  <i class="theme-switch fa-solid fa-moon               fa-lg" data-mode="dark"  title="Dark"></i>
+  <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"  title="System Settings"></i>
+</button></div>
+        
+      </div>
+    
+  </div>
+  
+    <div class="sidebar-primary-items__start sidebar-primary__section">
+        <div class="sidebar-primary-item"><nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
+
+  <div class="bd-toc-item active">
+    
+    <p aria-level="2" class="caption" role="heading"><span class="caption-text">ASF Links</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference external" href="https://apache.org">Apache Software Foundation</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/licenses/">License</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/foundation/sponsorship.html">Donate</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://www.apache.org/security/">Security</a></li>
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">Links</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference external" href="https://github.com/apache/datafusion">GitHub and Issue Tracker</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://crates.io/crates/datafusion">crates.io</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://docs.rs/datafusion/latest/datafusion/">API Docs</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://datafusion.apache.org/blog/">Blog</a></li>
+<li class="toctree-l1"><a class="reference external" href="https://github.com/apache/datafusion/blob/main/CODE_OF_CONDUCT.md">Code of conduct</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../download.html">Download</a></li>
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">User Guide</span></p>
+<ul class="nav bd-sidenav">
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/introduction.html">Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/example-usage.html">Example Usage</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/features.html">Features</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/concepts-readings-events.html">Concepts, Readings, Events</a></li>
+
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/crate-configuration.html">Crate Configuration</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../user-guide/cli/index.html">DataFusion CLI</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/overview.html">Overview</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/installation.html">Installation</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/usage.html">Usage</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/datasources.html">Local Files / Directories</a></li>
+
+
+
+
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/cli/functions.html">CLI Specific Functions</a></li>
+</ul>
+</details></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/dataframe.html">DataFrame API</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/arrow-introduction.html">Gentle Arrow Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/expressions.html">Expression API</a></li>
+<li class="toctree-l1 has-children"><a class="reference internal" href="../../user-guide/sql/index.html">SQL Reference</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/data_types.html">Data Types</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/struct_coercion.html">Struct Type Coercion and Field Mapping</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/select.html">SELECT syntax</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/subqueries.html">Subqueries</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/ddl.html">DDL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/dml.html">DML</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/explain.html">EXPLAIN</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/information_schema.html">Information Schema</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/operators.html">Operators and Literals</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/aggregate_functions.html">Aggregate Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/window_functions.html">Window Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/scalar_functions.html">Scalar Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/special_functions.html">Special Functions</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/format_options.html">Format Options</a></li>
+
+<li class="toctree-l2"><a class="reference internal" href="../../user-guide/sql/prepared_statements.html">Prepared Statements</a></li>
+</ul>
+</details></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/configs.html">Configuration Settings</a></li>
+
+
+
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/explain-usage.html">Reading Explain Plans</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/metrics.html">Metrics</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../../user-guide/faq.html">Frequently Asked Questions</a></li>
+
+</ul>
+<p aria-level="2" class="caption" role="heading"><span class="caption-text">Library User Guide</span></p>
+<ul class="current nav bd-sidenav">
+<li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li>
+<li class="toctree-l1 current active has-children"><a class="reference internal" href="index.html">Upgrade Guides</a><details open="open"><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul class="current">
+<li class="toctree-l2"><a class="reference internal" href="53.0.0.html">DataFusion 53.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="52.0.0.html">DataFusion 52.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="51.0.0.html">DataFusion 51.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="50.0.0.html">DataFusion 50.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="49.0.0.html">DataFusion 49.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="48.0.1.html">DataFusion 48.0.1</a></li>
+<li class="toctree-l2 current active"><a class="current reference internal" href="#">DataFusion 48.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="47.0.0.html">DataFusion 47.0.0</a></li>
+<li class="toctree-l2"><a class="reference internal" href="46.0.0.html">DataFusion 46.0.0</a></li>
+</ul>
+</details></li>
... 5883 lines suppressed ...


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org