Skip to content

Commit 9d8354a

Browse files
committed
Upgrade Iceberg version to 1.6.1
1 parent e00eeca commit 9d8354a

4 files changed

Lines changed: 1 addition & 89 deletions

File tree

presto-iceberg/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<properties>
1515
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
1616
<project.build.targetJdk>17</project.build.targetJdk>
17-
<dep.iceberg.version>1.5.0</dep.iceberg.version>
17+
<dep.iceberg.version>1.6.1</dep.iceberg.version>
1818
<dep.nessie.version>0.95.0</dep.nessie.version>
1919
<air.check.skip-modernizer>true</air.check.skip-modernizer>
2020
</properties>

presto-iceberg/src/test/java/com/facebook/presto/iceberg/rest/TestIcebergDistributedRest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import static com.facebook.presto.testing.TestingSession.testSessionBuilder;
3737
import static com.google.common.io.MoreFiles.deleteRecursively;
3838
import static com.google.common.io.RecursiveDeleteOption.ALLOW_INSECURE;
39-
import static org.assertj.core.api.Assertions.assertThatThrownBy;
4039

4140
@Test
4241
public class TestIcebergDistributedRest
@@ -98,15 +97,6 @@ protected QueryRunner createQueryRunner()
9897
.getQueryRunner();
9998
}
10099

101-
@Test
102-
public void testDeleteOnV1Table()
103-
{
104-
// v1 table create fails due to Iceberg REST catalog bug (see: https://github.com/apache/iceberg/issues/8756)
105-
assertThatThrownBy(super::testDeleteOnV1Table)
106-
.isInstanceOf(RuntimeException.class)
107-
.hasMessageMatching("Cannot downgrade v2 table to v1");
108-
}
109-
110100
@Test
111101
public void testRestUserSessionAuthorization()
112102
{

presto-iceberg/src/test/java/com/facebook/presto/iceberg/rest/TestIcebergSmokeRest.java

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import static com.google.common.io.RecursiveDeleteOption.ALLOW_INSECURE;
4848
import static java.lang.String.format;
4949
import static org.apache.iceberg.rest.auth.OAuth2Properties.OAUTH2_SERVER_URI;
50-
import static org.assertj.core.api.Assertions.assertThatThrownBy;
5150
import static org.testng.Assert.assertEquals;
5251

5352
@Test
@@ -128,69 +127,6 @@ protected Table getIcebergTable(ConnectorSession session, String schema, String
128127
SchemaTableName.valueOf(schema + "." + tableName));
129128
}
130129

131-
@Test
132-
public void testDeleteOnPartitionedV1Table()
133-
{
134-
// v1 table create fails due to Iceberg REST catalog bug (see: https://github.com/apache/iceberg/issues/8756)
135-
assertThatThrownBy(super::testDeleteOnPartitionedV1Table)
136-
.isInstanceOf(RuntimeException.class)
137-
.hasMessageMatching("Cannot downgrade v2 table to v1");
138-
}
139-
140-
@Test
141-
public void testCreateTableWithFormatVersion()
142-
{
143-
// v1 table create fails due to Iceberg REST catalog bug (see: https://github.com/apache/iceberg/issues/8756)
144-
assertThatThrownBy(() -> super.testMetadataDeleteOnNonIdentityPartitionColumn("1", "copy-on-write"))
145-
.isInstanceOf(RuntimeException.class)
146-
.hasMessageMatching("Cannot downgrade v2 table to v1");
147-
148-
// v2 succeeds
149-
super.testCreateTableWithFormatVersion("2", "merge-on-read");
150-
}
151-
152-
@Test(dataProvider = "version_and_mode")
153-
public void testMetadataDeleteOnNonIdentityPartitionColumn(String version, String mode)
154-
{
155-
if (version.equals("1")) {
156-
// v1 table create fails due to Iceberg REST catalog bug (see: https://github.com/apache/iceberg/issues/8756)
157-
assertThatThrownBy(() -> super.testMetadataDeleteOnNonIdentityPartitionColumn(version, mode))
158-
.isInstanceOf(RuntimeException.class);
159-
}
160-
else {
161-
// v2 succeeds
162-
super.testMetadataDeleteOnNonIdentityPartitionColumn(version, mode);
163-
}
164-
}
165-
166-
@Test(dataProvider = "version_and_mode")
167-
public void testMetadataDeleteOnTableWithUnsupportedSpecsIncludingNoData(String version, String mode)
168-
{
169-
if (version.equals("1")) {
170-
// v1 table create fails due to Iceberg REST catalog bug (see: https://github.com/apache/iceberg/issues/8756)
171-
assertThatThrownBy(() -> super.testMetadataDeleteOnTableWithUnsupportedSpecsIncludingNoData(version, mode))
172-
.isInstanceOf(RuntimeException.class);
173-
}
174-
else {
175-
// v2 succeeds
176-
super.testMetadataDeleteOnTableWithUnsupportedSpecsIncludingNoData(version, mode);
177-
}
178-
}
179-
180-
@Test(dataProvider = "version_and_mode")
181-
public void testMetadataDeleteOnTableWithUnsupportedSpecsWhoseDataAllDeleted(String version, String mode)
182-
{
183-
if (version.equals("1")) {
184-
// v1 table create fails due to Iceberg REST catalog bug (see: https://github.com/apache/iceberg/issues/8756)
185-
assertThatThrownBy(() -> super.testMetadataDeleteOnTableWithUnsupportedSpecsWhoseDataAllDeleted(version, mode))
186-
.isInstanceOf(RuntimeException.class);
187-
}
188-
else {
189-
// v2 succeeds
190-
super.testMetadataDeleteOnTableWithUnsupportedSpecsWhoseDataAllDeleted(version, mode);
191-
}
192-
}
193-
194130
@Test
195131
public void testSetOauth2ServerUriPropertyI()
196132
{

presto-iceberg/src/test/java/com/facebook/presto/iceberg/rest/TestIcebergSmokeRestNestedNamespace.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import static java.nio.file.Files.createTempDirectory;
5454
import static java.util.Locale.ENGLISH;
5555
import static org.assertj.core.api.Assertions.assertThat;
56-
import static org.assertj.core.api.Assertions.assertThatThrownBy;
5756

5857
@Test
5958
public class TestIcebergSmokeRestNestedNamespace
@@ -263,19 +262,6 @@ protected void testCreatePartitionedTableAs(Session session, FileFormat fileForm
263262
dropTable(session, "test_create_partitioned_table_as_" + fileFormatString);
264263
}
265264

266-
@Test
267-
@Override
268-
public void testCreateTableWithFormatVersion()
269-
{
270-
// v1 table create fails due to Iceberg REST catalog bug (see: https://github.com/apache/iceberg/issues/8756)
271-
assertThatThrownBy(() -> testCreateTableWithFormatVersion("1", "copy-on-write"))
272-
.hasCauseInstanceOf(RuntimeException.class)
273-
.hasStackTraceContaining("Cannot downgrade v2 table to v1");
274-
275-
// v2 succeeds
276-
testCreateTableWithFormatVersion("2", "merge-on-read");
277-
}
278-
279265
@Override // override due to double quotes around nested namespace
280266
protected void testCreateTableWithFormatVersion(String formatVersion, String defaultDeleteMode)
281267
{

0 commit comments

Comments
 (0)