Skip to content

Commit 6023495

Browse files
authored
chore: [branch-0.10] Support Spark 4.0.1 instead of 4.0.0 (#2414) (#2497)
1 parent e28d436 commit 6023495

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/spark_sql_test_ansi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
matrix:
4444
os: [ubuntu-24.04]
4545
java-version: [17]
46-
spark-version: [{short: '4.0', full: '4.0.0'}]
46+
spark-version: [{short: '4.0', full: '4.0.1'}]
4747
module:
4848
- {name: "catalyst", args1: "catalyst/test", args2: ""}
4949
- {name: "sql/core-1", args1: "", args2: sql/testOnly * -- -l org.apache.spark.tags.ExtendedSQLTest -l org.apache.spark.tags.SlowSQLTest}

docs/source/contributor-guide/roadmap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ releases. Once this integration is complete, we plan on switching from the `nati
3333
[#2060]: https://github.com/apache/datafusion-comet/issues/2060
3434
[#2189]: https://github.com/apache/datafusion-comet/issues/2189
3535

36-
### Spark 4.0.0 Support
36+
### Spark 4.0 Support
3737

38-
Comet has experimental support for Spark 4.0.0, but there is more work to do ([#1637]), such as enabling
38+
Comet has experimental support for Spark 4.0, but there is more work to do ([#1637]), such as enabling
3939
more Spark SQL tests and fully implementing ANSI support ([#313]) for all supported expressions.
4040

4141
[#313]: https://github.com/apache/datafusion-comet/issues/313

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Note that we do not test the full matrix of supported Java and Scala versions in
4747
Experimental support is provided for the following versions of Apache Spark and is intended for development/testing
4848
use only and should not be used in production yet.
4949

50-
| Spark Version | Java Version | Scala Version | Comet Tests in CI | Spark SQL Tests in CI |
51-
| -------------- | ------------ | ------------- | ----------------- |-----------------------|
52-
| 4.0.0 | 17 | 2.13 | Yes | Yes |
50+
| Spark Version | Java Version | Scala Version | Comet Tests in CI | Spark SQL Tests in CI |
51+
|---------------| ------------ | ------------- | ----------------- |-----------------------|
52+
| 4.0.1 | 17 | 2.13 | Yes | Yes |
5353

5454
Note that Comet may not fully work with proprietary forks of Apache Spark such as the Spark versions offered by
5555
Cloud Service Providers.

native/core/src/common/bit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ impl BitReader {
657657
debug_assert!(self.bit_offset == 0 || i == num_bits_to_read);
658658

659659
// Check if there's opportunity to directly copy bytes using `memcpy`.
660-
if (offset + i) % 8 == 0 && i < num_bits_to_read {
660+
if (offset + i).is_multiple_of(8) && i < num_bits_to_read {
661661
let num_bytes = (num_bits_to_read - i) / 8;
662662
let dst_byte_offset = (offset + i) / 8;
663663
if num_bytes > 0 {
@@ -671,7 +671,7 @@ impl BitReader {
671671
}
672672
}
673673

674-
debug_assert!((offset + i) % 8 != 0 || num_bits_to_read - i < 8);
674+
debug_assert!(!(offset + i).is_multiple_of(8) || num_bits_to_read - i < 8);
675675

676676
// Now copy the remaining bits if there's any.
677677
while i < num_bits_to_read {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ under the License.
616616
<!-- Use Scala 2.13 by default -->
617617
<scala.version>2.13.16</scala.version>
618618
<scala.binary.version>2.13</scala.binary.version>
619-
<spark.version>4.0.0</spark.version>
619+
<spark.version>4.0.1</spark.version>
620620
<spark.version.short>4.0</spark.version.short>
621621
<parquet.version>1.15.2</parquet.version>
622622
<semanticdb.version>4.13.6</semanticdb.version>

0 commit comments

Comments
 (0)