Skip to content

Commit 2d41937

Browse files
authored
docs: update Spark version support and add version compatibility page (#4138)
1 parent d2ada84 commit 2d41937

4 files changed

Lines changed: 72 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ benefits of Comet's acceleration capabilities without disrupting your Spark appl
8181

8282
## Getting Started
8383

84-
Comet supports Apache Spark 3.4 and 3.5, and provides experimental support for Spark 4.0. See the
84+
Comet supports Apache Spark 3.4, 3.5, and 4.0, and provides experimental support for Spark 4.1 and 4.2. See the
8585
[installation guide](https://datafusion.apache.org/comet/user-guide/installation.html) for the detailed
8686
version, Java, and Scala compatibility matrix.
8787

docs/source/user-guide/latest/compatibility/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This guide documents areas where Comet's behavior is known to differ from Spark.
2828
- **Regular expressions**: differences between the Rust regexp crate and Java's regex engine.
2929
- **Operators**: operator-level compatibility notes, including window functions and round-robin partitioning.
3030
- **Expressions**: per-expression compatibility notes, including cast.
31+
- **Spark versions**: version-specific known issues and limitations.
3132

3233
```{toctree}
3334
:maxdepth: 1
@@ -37,4 +38,5 @@ floating-point
3738
regex
3839
operators
3940
expressions/index
41+
spark-versions
4042
```
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<!---
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
20+
# Spark Version Compatibility
21+
22+
This page documents known issues and limitations specific to each supported Apache Spark version.
23+
24+
For general compatibility information that applies across all Spark versions, see the other pages in this
25+
compatibility guide.
26+
27+
## Spark 3.4
28+
29+
Spark 3.4.3 is supported with Java 11/17 and Scala 2.12/2.13.
30+
31+
## Spark 3.5
32+
33+
Spark 3.5.8 is supported with Java 11/17 and Scala 2.12/2.13.
34+
35+
## Spark 4.0
36+
37+
Spark 4.0.2 is supported with Java 17 and Scala 2.13.
38+
39+
### Known Limitations
40+
41+
- **Collation support** ([#1947](https://github.com/apache/datafusion-comet/issues/1947),
42+
[#4051](https://github.com/apache/datafusion-comet/issues/4051)): Spark 4.0 introduced collation
43+
support. Non-default collated strings are not yet supported by Comet and will fall back to Spark.
44+
45+
## Spark 4.1 (Experimental)
46+
47+
Spark 4.1.1 is provided as experimental support with Java 17 and Scala 2.13.
48+
49+
```{warning}
50+
Spark 4.1 support is experimental and intended for development and testing only. It should not be used
51+
in production.
52+
```
53+
54+
## Spark 4.2 (Experimental)
55+
56+
Spark 4.2.0-preview4 is provided as experimental support with Java 17 and Scala 2.13.
57+
58+
```{warning}
59+
Spark 4.2 support is experimental and targets a preview release of Spark. It is intended for early
60+
evaluation only and should not be used in production.
61+
```

docs/source/user-guide/latest/installation.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@ Other versions may work well enough for development and evaluation purposes.
4242
| 3.5.6 | 11/17 | 2.12/2.13 | Yes | No |
4343
| 3.5.7 | 11/17 | 2.12/2.13 | Yes | Yes |
4444
| 3.5.8 | 11/17 | 2.12/2.13 | Yes | Yes |
45+
| 4.0.2 | 17 | 2.13 | Yes | Yes |
4546

4647
Note that we do not test the full matrix of supported Java and Scala versions in CI for every Spark version.
4748

4849
Experimental support is provided for the following versions of Apache Spark and is intended for development/testing
4950
use only and should not be used in production yet.
5051

51-
| Spark Version | Java Version | Scala Version | Comet Tests in CI | Spark SQL Tests in CI |
52-
| ------------- | ------------ | ------------- | ----------------- | --------------------- |
53-
| 4.0.2 | 17 | 2.13 | Yes | Yes |
52+
| Spark Version | Java Version | Scala Version | Comet Tests in CI | Spark SQL Tests in CI |
53+
| -------------- | ------------ | ------------- | ----------------- | --------------------- |
54+
| 4.1.1 | 17 | 2.13 | Compile only | No |
55+
| 4.2.0-preview4 | 17 | 2.13 | Compile only | No |
5456

5557
Note that Comet may not fully work with proprietary forks of Apache Spark such as the Spark versions offered by
5658
Cloud Service Providers.
@@ -81,7 +83,9 @@ Here are the direct links for downloading the Comet $COMET_VERSION jar file.
8183
- [Comet plugin for Spark 3.4 / Scala 2.13](https://repo1.maven.org/maven2/org/apache/datafusion/comet-spark-spark3.4_2.13/$COMET_VERSION/comet-spark-spark3.4_2.13-$COMET_VERSION.jar)
8284
- [Comet plugin for Spark 3.5 / Scala 2.12](https://repo1.maven.org/maven2/org/apache/datafusion/comet-spark-spark3.5_2.12/$COMET_VERSION/comet-spark-spark3.5_2.12-$COMET_VERSION.jar)
8385
- [Comet plugin for Spark 3.5 / Scala 2.13](https://repo1.maven.org/maven2/org/apache/datafusion/comet-spark-spark3.5_2.13/$COMET_VERSION/comet-spark-spark3.5_2.13-$COMET_VERSION.jar)
84-
- [Comet plugin for Spark 4.0 / Scala 2.13 (Experimental)](https://repo1.maven.org/maven2/org/apache/datafusion/comet-spark-spark4.0_2.13/$COMET_VERSION/comet-spark-spark4.0_2.13-$COMET_VERSION.jar)
86+
- [Comet plugin for Spark 4.0 / Scala 2.13](https://repo1.maven.org/maven2/org/apache/datafusion/comet-spark-spark4.0_2.13/$COMET_VERSION/comet-spark-spark4.0_2.13-$COMET_VERSION.jar)
87+
- [Comet plugin for Spark 4.1 / Scala 2.13 (Experimental)](https://repo1.maven.org/maven2/org/apache/datafusion/comet-spark-spark4.1_2.13/$COMET_VERSION/comet-spark-spark4.1_2.13-$COMET_VERSION.jar)
88+
- [Comet plugin for Spark 4.2 / Scala 2.13 (Experimental)](https://repo1.maven.org/maven2/org/apache/datafusion/comet-spark-spark4.2_2.13/$COMET_VERSION/comet-spark-spark4.2_2.13-$COMET_VERSION.jar)
8589
<!-- ENDIF -->
8690

8791
## Building from source

0 commit comments

Comments
 (0)