Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] test(lance): default the Lance Spark bundle baseline to 0.5.1 (#13170)

StormSpirite21970855c75
diff --git a/docs/lance-rest-integration.md b/docs/lance-rest-integration.md
index 39ab9f6c11..b2b1fb607f 100644
--- a/docs/lance-rest-integration.md
+++ b/docs/lance-rest-integration.md
@@ -87,6 +87,12 @@ Generic Catalog unknown-format loading errors or change the Generic Catalog's fo
Both connectors ship with a multi-version integration test driver so the
matrix can be re-verified (and extended) without ad-hoc scripting:
+For Lance Spark, the default `test` task uses the explicitly verified `0.5.1`
+bundle, while `lanceSparkMatrixTest` uses the declared matrix
+(`0.2.0`, `0.4.0`, and `0.5.1`). Passing `-PlanceSparkBundleVersions=...` is a
+targeted diagnostic override; the supplied versions form the matrix and the
+first supplied version remains the primary for the normal `test` task.
+
```bash
# lance-spark — runs LanceSparkRESTServiceIT once per bundle version.
# The default list intentionally omits 0.1.0 / 0.1.1: those bundles call the
@@ -202,7 +208,7 @@ logging.basicConfig(level=logging.INFO)
# Replace /path/to/lance-spark-bundle-3.5_2.12-X.X.XX.jar with your actual JAR path and version;
# refer to the compatibility matrix for supported lance-spark versions.
os.environ["PYSPARK_SUBMIT_ARGS"] = (
- "--jars /path/to/lance-spark-bundle-3.5_2.12-0.4.0.jar "
+ "--jars /path/to/lance-spark-bundle-3.5_2.12-0.5.1.jar "
"--conf \"spark.driver.extraJavaOptions=--add-opens=java.base/sun.nio.ch=ALL-UNNAMED\" "
"--conf \"spark.executor.extraJavaOptions=--add-opens=java.base/sun.nio.ch=ALL-UNNAMED\" "
"--master local[1] pyspark-shell"
diff --git a/lance/lance-rest-server/build.gradle.kts b/lance/lance-rest-server/build.gradle.kts
index 8f35a43966..b528c63395 100644
--- a/lance/lance-rest-server/build.gradle.kts
+++ b/lance/lance-rest-server/build.gradle.kts
@@ -29,16 +29,23 @@ val scalaVersion: String =
val sparkVersion: String = libs.versions.spark35.get()
val scalaCollectionCompatVersion: String = libs.versions.scala.collection.compat.get()
// Comma-separated list of lance-spark-bundle versions to test against.
-// The default is the latest supported version; the integration test matrix
-// (`:lance:lance-rest-server:lanceSparkMatrixTest`) covers every version in
-// this list. Override via `-PlanceSparkBundleVersions=0.2.0,0.4.0`.
+// Without an explicit property, the integration test matrix covers every
+// declared version and the normal test task uses 0.5.1 as its primary bundle.
+// An explicit property is a targeted diagnostic override; its first version
+// remains the primary bundle for compatibility with the existing behavior.
+val lanceSparkBundleVersionsProperty = project.properties["lanceSparkBundleVersions"] as? String
val lanceSparkBundleVersions: List<String> =
- ((project.properties["lanceSparkBundleVersions"] as? String) ?: "0.4.0")
+ (lanceSparkBundleVersionsProperty ?: "0.2.0,0.4.0,0.5.1")
.split(",").map { it.trim() }.filter { it.isNotEmpty() }.distinct()
if (lanceSparkBundleVersions.isEmpty()) {
throw GradleException("lanceSparkBundleVersions must contain at least one version")
}
-val primaryLanceSparkBundleVersion: String = lanceSparkBundleVersions.first()
+val primaryLanceSparkBundleVersion: String =
+ if (lanceSparkBundleVersionsProperty == null) {
+ "0.5.1"
+ } else {
+ lanceSparkBundleVersions.first()
+ }
val lanceSparkBundleJarPathProperty = "gravitino.lance.spark.bundle.jar"
fun lanceSparkBundleConfigName(version: String): String =
@@ -262,7 +269,7 @@ tasks {
group = "verification"
description =
"Run LanceSparkRESTServiceIT against every version in -PlanceSparkBundleVersions " +
- "(default: $primaryLanceSparkBundleVersion). Reports land under " +
+ "(default: ${lanceSparkBundleVersions.joinToString(", ")}). Reports land under " +
"build/reports/lance-spark-matrix/<version>/."
dependsOn(
lanceSparkBundleVersions.map { named(lanceSparkTestTaskName(it)) }