Skip to content

Commit c72b6df

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 c72b6df

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/src/operations/dql/vector-search.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Implemented as a **table-valued function**, so it composes cleanly with `WHERE`,
99
[Spark SQL Extensions](../../config.md#spark-sql-extensions) for configuration details.
1010

1111
!!! tip "Also see"
12-
- [CREATE VECTOR INDEX](../ddl/create-vector-index.md) — build the index the search uses.
12+
- [CREATE INDEX](../ddl/create-index.md) — build the vector (`ivf_*`) index the search uses.
1313
- [Select](select.md) — general read path.
1414

1515
## Syntax
@@ -84,7 +84,7 @@ smaller than `k` (or the pre-filter eliminates enough rows).
8484

8585
### `metric`
8686
Which distance metric to use. See the metric table in
87-
[CREATE VECTOR INDEX → Distance Metrics](../ddl/create-vector-index.md#distance-metrics).
87+
[CREATE INDEX → Distance Metrics](../ddl/create-index.md#distance-metrics).
8888
If omitted, the metric stored inside the index is used.
8989

9090
### `nprobes`

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)