Skip to content
Open
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
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23
25
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ This starts a Trino server on port 8080 with the Lance connector configured.

### Requirements

- Java 23 or later
- Trino 476 or compatible version
- Java 25 or later
- Trino 481 or compatible version
22 changes: 11 additions & 11 deletions docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@

## Requirements

- Java 23 or later
- Trino 476 or compatible version
- Java 25 or later
- Trino 481 or compatible version

## Download from GitHub Releases

Each release includes a `trino-lance-<version>-trino<trino_version>.tar.gz` archive containing all required JARs. Download from the [releases page](https://github.com/lancedb/lance-trino/releases).
Each release includes a `lance-trino-<version>-trino<trino_version>.tar.gz` archive containing all required JARs. Download from the [releases page](https://github.com/lancedb/lance-trino/releases).

### Quick Installation

=== "Linux/macOS"
```bash
# Set variables
VERSION="0.3.2"
TRINO_VERSION="476"
TRINO_VERSION="481"
PLUGIN_DIR="/usr/lib/trino/plugin"

# Download and extract
wget "https://github.com/lancedb/lance-trino/releases/download/v${VERSION}/trino-lance-${VERSION}-trino${TRINO_VERSION}.tar.gz"
tar -xzf "trino-lance-${VERSION}-trino${TRINO_VERSION}.tar.gz" -C "${PLUGIN_DIR}/"
mv "${PLUGIN_DIR}/trino-lance-${TRINO_VERSION}" "${PLUGIN_DIR}/lance"
wget "https://github.com/lancedb/lance-trino/releases/download/v${VERSION}/lance-trino-${VERSION}-trino${TRINO_VERSION}.tar.gz"
tar -xzf "lance-trino-${VERSION}-trino${TRINO_VERSION}.tar.gz" -C "${PLUGIN_DIR}/"
mv "${PLUGIN_DIR}/lance-trino-${VERSION}" "${PLUGIN_DIR}/lance"
```

=== "Docker"
```dockerfile
FROM trinodb/trino:476
FROM trinodb/trino:481

# Download and install Lance connector
ARG VERSION=0.3.2
ARG TRINO_VERSION=476
ARG TRINO_VERSION=481

RUN curl -fsSL "https://github.com/lancedb/lance-trino/releases/download/v${VERSION}/trino-lance-${VERSION}-trino${TRINO_VERSION}.tar.gz" \
RUN curl -fsSL "https://github.com/lancedb/lance-trino/releases/download/v${VERSION}/lance-trino-${VERSION}-trino${TRINO_VERSION}.tar.gz" \
| tar -xz -C /usr/lib/trino/plugin/ \
&& mv "/usr/lib/trino/plugin/trino-lance-${TRINO_VERSION}" /usr/lib/trino/plugin/lance
&& mv "/usr/lib/trino/plugin/lance-trino-${VERSION}" /usr/lib/trino/plugin/lance
```
44 changes: 14 additions & 30 deletions plugin/trino-lance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<classifier>classes</classifier>
</dependency>

<dependency>
Expand Down Expand Up @@ -108,6 +109,11 @@
<artifactId>arrow-memory-core</artifactId>
</dependency>

<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-memory-unsafe</artifactId>
</dependency>

<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-vector</artifactId>
Expand Down Expand Up @@ -172,12 +178,6 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.openjdk.jol</groupId>
<artifactId>jol-core</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
Expand Down Expand Up @@ -259,31 +259,12 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-spi</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-testing</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-testing-kafka</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-common</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-tpch</artifactId>
Expand Down Expand Up @@ -328,19 +309,19 @@

<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<artifactId>testcontainers</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>localstack</artifactId>
<artifactId>testcontainers-kafka</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<artifactId>testcontainers-localstack</artifactId>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -401,7 +382,7 @@
</requireUpperBoundDeps>
<enforceBytecodeVersion>
<excludes combine.children="append">
<!-- Trino SPI compiled with Java 24 -->
<!-- Trino SPI compiled with Java 25 -->
<exclude>io.trino:trino-spi</exclude>
<exclude>io.trino:trino-matching</exclude>
<exclude>io.trino:trino-cache</exclude>
Expand All @@ -414,14 +395,15 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<argLine>${air.test.jvm.additional-arguments} --add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
<useSystemClassLoader>false</useSystemClassLoader>
<!-- Each DistributedQueryRunner consumes ~500 threads. Limit parallel forks to
avoid exhausting the OS thread limit (ulimit -u). The Makefile computes a
safe value for the local machine and passes it via -Dsurefire.forkCount. -->
<forkCount>${surefire.forkCount}</forkCount>
<systemPropertyVariables>
<arrow.allocation.manager.type>Unsafe</arrow.allocation.manager.type>
<junit.jupiter.execution.parallel.mode.classes.default>same_thread</junit.jupiter.execution.parallel.mode.classes.default>
</systemPropertyVariables>
</configuration>
Expand All @@ -435,6 +417,8 @@
<ignoredUnusedDeclaredDependency>com.google.protobuf:protobuf-java</ignoredUnusedDeclaredDependency>
<!-- Currently unused but kept for potential future use -->
<ignoredUnusedDeclaredDependency>io.trino:trino-cache</ignoredUnusedDeclaredDependency>
<!-- Selected reflectively by Arrow when arrow.allocation.manager.type=Unsafe -->
<ignoredUnusedDeclaredDependency>org.apache.arrow:arrow-memory-unsafe</ignoredUnusedDeclaredDependency>
<!-- Used for @SuppressModernizer annotation -->
<ignoredUnusedDeclaredDependency>org.gaul:modernizer-maven-annotations</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public enum BlobVirtualColumnType
{
NONE,
POSITION,
SIZE
SIZE,
}

private BlobUtils() {}
Expand Down
Loading
Loading