Skip to content

Commit

Permalink
Revert "Update Iceberg from 1.3.1 to 1.4.1"
Browse files Browse the repository at this point in the history
This reverts commit bb66918.

Iceberg 1.4.x contains a silent correctness issue when concurrently
committing writes to a table.

See: apache/iceberg#9227
  • Loading branch information
alexjo2144 committed Dec 18, 2023
1 parent 0aa1f1b commit 2b1b7a6
Show file tree
Hide file tree
Showing 9 changed files with 466 additions and 10 deletions.
7 changes: 6 additions & 1 deletion plugin/trino-iceberg/pom.xml
Expand Up @@ -16,7 +16,7 @@
<properties>
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
<!-- Nessie version (matching to Iceberg release) must be bumped along with Iceberg version bump to avoid compatibility issues -->
<dep.nessie.version>0.71.0</dep.nessie.version>
<dep.nessie.version>0.59.0</dep.nessie.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -230,6 +230,11 @@
<artifactId>parquet-hadoop</artifactId>
</dependency>

<dependency>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-annotations</artifactId>
</dependency>

<dependency>
<groupId>org.jdbi</groupId>
<artifactId>jdbi3-core</artifactId>
Expand Down
Expand Up @@ -37,7 +37,7 @@
import static io.trino.spi.StandardErrorCode.GENERIC_INTERNAL_ERROR;
import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
import static org.apache.iceberg.parquet.ParquetUtil.footerMetrics;
import static org.apache.iceberg.parquet.TrinoParquetUtil.footerMetrics;

public final class IcebergParquetFileWriter
implements IcebergFileWriter
Expand Down
Expand Up @@ -49,6 +49,7 @@ public static NessieIcebergClient createNessieIcebergClient(IcebergNessieCatalog
{
HttpClientBuilder builder = HttpClientBuilder.builder()
.withUri(icebergNessieCatalogConfig.getServerUri())
.withEnableApiCompatibilityCheck(false)
.withDisableCompression(!icebergNessieCatalogConfig.isCompressionEnabled())
.withReadTimeout(toIntExact(icebergNessieCatalogConfig.getReadTimeout().toMillis()))
.withConnectionTimeout(toIntExact(icebergNessieCatalogConfig.getConnectionTimeout().toMillis()));
Expand Down

0 comments on commit 2b1b7a6

Please sign in to comment.