Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Oct 16, 2023
1 parent 53fa5f5 commit 47a255f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@
<air.check.fail-checkstyle>true</air.check.fail-checkstyle>
<air.check.skip-checkstyle>false</air.check.skip-checkstyle>

<dep.trino.version>428</dep.trino.version>
<dep.airlift.version>235</dep.airlift.version>
<dep.trino.version>429</dep.trino.version>
<dep.airlift.version>237</dep.airlift.version>
<dep.slice.version>2.2</dep.slice.version>
<dep.opentelemetry.version>1.30.1</dep.opentelemetry.version>
<dep.opentelemetry-instrumentation.version>1.30.0</dep.opentelemetry-instrumentation.version>
<dep.opentelemetry.version>1.31.0</dep.opentelemetry.version>
<dep.opentelemetry-instrumentation.version>1.31.0</dep.opentelemetry-instrumentation.version>
<dep.packaging.version>${dep.airlift.version}</dep.packaging.version>
<dep.aws-sdk.version>1.12.561</dep.aws-sdk.version>
<dep.guava.version>32.1.2-jre</dep.guava.version>
<dep.aws-sdk.version>1.12.566</dep.aws-sdk.version>
<dep.guava.version>32.1.3-jre</dep.guava.version>
<dep.guice.version>7.0.0</dep.guice.version>
<dep.errorprone.version>2.22.0</dep.errorprone.version>
<dep.jackson.version>2.15.2</dep.jackson.version>
<dep.jackson.version>2.15.3</dep.jackson.version>
<dep.testcontainers.version>1.19.1</dep.testcontainers.version>
<dep.docker-java.version>3.3.3</dep.docker-java.version>
<dep.testng.version>7.8.0</dep.testng.version>
Expand All @@ -78,7 +78,7 @@
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.14.8</version>
<version>1.14.9</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.ebyhr.trino.storage;

import com.google.inject.Inject;
import io.trino.spi.Page;
import io.trino.spi.connector.ColumnHandle;
import io.trino.spi.connector.ConnectorPageSource;
import io.trino.spi.connector.ConnectorPageSourceProvider;
Expand All @@ -29,8 +30,10 @@
import org.ebyhr.trino.storage.operator.PluginFactory;

import java.util.List;
import java.util.stream.StreamSupport;

import static java.util.Objects.requireNonNull;
import static java.util.stream.Collectors.toList;
import static org.ebyhr.trino.storage.StorageSplit.Mode.LIST;

public class StoragePageSourceProvider
Expand Down Expand Up @@ -65,7 +68,10 @@ public ConnectorPageSource createPageSource(
FilePlugin plugin = PluginFactory.create(schemaName);

try {
return new FixedPageSource(plugin.getPagesIterator(tableName, path -> storageClient.getInputStream(session, path)));
Iterable<Page> iterable = plugin.getPagesIterator(tableName, path -> storageClient.getInputStream(session, path));
List<Page> pages = StreamSupport.stream(iterable.spliterator(), false)
.collect(toList());
return new FixedPageSource(pages);
}
catch (UnsupportedOperationException ignored) {
// Ignore it when a plugin doesn't implement getPagesIterator
Expand Down

0 comments on commit 47a255f

Please sign in to comment.