Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions lance-spark-knn-4.2_2.13/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.lance</groupId>
<artifactId>lance-spark-root</artifactId>
<version>0.7.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>lance-spark-knn-4.2_2.13</artifactId>
<name>${project.artifactId}</name>
<description>Catalyst integration for the indexed nearest-by join on Lance (Spark 4.2 SQL, SPARK-56395)</description>
<packaging>jar</packaging>

<properties>
<scala.version>${scala213.version}</scala.version>
<scala.compat.version>${scala213.compat.version}</scala.compat.version>
<arrow.version>${arrow19.version}</arrow.version>
<java.release>${java17.release}</java.release>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.compat.version}</artifactId>
<version>${spark42.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-catalyst_${scala.compat.version}</artifactId>
<version>${spark42.version}</version>
<scope>provided</scope>
</dependency>
<!--
The Spark-version-agnostic knn core (LanceKnnJoinStage, LanceProbe, Metric, ...). We
drive the same no-shuffle runPartition from LanceKnnJoinExec that the DataFrame API uses.
Exclude the netty buffer patch: Spark 4.2 (provided) supplies arrow 19.0.0 already.
-->
<dependency>
<groupId>org.lance</groupId>
<artifactId>lance-spark-knn_${scala.compat.version}</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-memory-netty-buffer-patch</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Test-runtime: the Spark 4.2 connector so the e2e test's format("lance") resolves. -->
<dependency>
<groupId>org.lance</groupId>
<artifactId>lance-spark-4.2_${scala.compat.version}</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<!-- junit-jupiter (test) is inherited from the root pom's global dependencies. -->
</dependencies>

<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala-maven-plugin.version}</version>
<executions>
<execution>
<id>scala-compile-first</id>
<phase>process-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-test-compile</id>
<phase>process-test-resources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<args>
<arg>-feature</arg>
<arg>-release</arg>
<arg>${java.release}</arg>
</args>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<release>${java.release}</release>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java21</id>
<properties>
<java.release>21</java.release>
</properties>
</profile>
</profiles>
</project>
Loading