Skip to content

Fix Compatibility issues addressed in Spark 4.1 #11340

Closed

Description

@baibaichen

Description

This issue tracks five key compatibility fixes and improvements aimed at proactively adapting to upstream Spark changes and the upcoming 4.1 upgrade, minimizing future review and merge overhead:

  1. Enable SPARK_TESTING Environment Variable
    Spark unit tests set the environment variable SPARK_TESTING=1 by default. To stay aligned with Spark's internal testing behavior, we now explicitly set SPARK_TESTING=1 in Gluten's test workflows.
    Ref: #53344

  2. Update commons-collections Dependency to 4.5.0
    Follows Spark's upgrade by removing version 3.x and migrating to 4.x, bringing better support for Java generics and ensuring dependency consistency.
    Ref: #52743

  3. Add GeographyVal and GeometryVal Support
    Adds support for new geospatial data types (GEOGRAPHY and GEOMETRY) as proposed and implemented in SPARK-51658, enriching row accessor interfaces for upcoming geospatial analytics.
    Ref: SPARK-51658

  4. Make reserveNewColumn Public
    Adjusts method visibility ahead of time to match the signature changes in future Spark versions and lessen upgrade friction.
    Ref: #52557

  5. Remove JetBrains @NotNull Annotations
    Removes incompatible @NotNull annotations to resolve compilation issues surfaced by Spark 4.1 and ORC 2.2.0 upgrades.
    Ref: #51676

Gluten version

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions