Skip to content

Commit 8e9e9d7

Browse files
Vova Kolmakovclaude
andcommitted
fix: declare IOException in tearDown for Spark 4.x compile
`SparkSession.close()` throws checked `IOException` on Spark 4.x but not on 3.x. The base test file is added to every version module's test source set, so the missing `throws` clause broke `make test` on Spark 4.0/4.1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 94ef1ce commit 8e9e9d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lance-spark-base_2.12/src/test/java/org/lance/spark/read/BaseLanceVectorSearchTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void setup() throws IOException {
7575
}
7676

7777
@AfterEach
78-
public void tearDown() {
78+
public void tearDown() throws IOException {
7979
if (spark != null) {
8080
spark.close();
8181
spark = null;

0 commit comments

Comments
 (0)