Skip to content

Commit ba8cf2a

Browse files
committed
Upgrade to support Iceberg Variant
1 parent 126bfcb commit ba8cf2a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@
6060
<!--Compatible protobuf version https://github.com/confluentinc/common/blob/v7.7.0/pom.xml#L91 -->
6161
<protobuf.version>3.25.5</protobuf.version>
6262
<guava.version>33.4.0-jre</guava.version>
63-
<iceberg.version>1.6.1</iceberg.version>
63+
<iceberg.version>1.10.0</iceberg.version>
6464
<jackson.version>2.18.2</jackson.version>
6565
<commons-compress.version>1.27.1</commons-compress.version>
6666
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
6767
<snowflake-jdbc.version>3.26.1</snowflake-jdbc.version>
6868
<slf4j-api.version>2.0.17</slf4j-api.version>
69-
<parquet.version>1.14.4</parquet.version>
69+
<parquet.version>1.15.1</parquet.version>
7070
<commons-lang3.version>3.18.0</commons-lang3.version>
7171
</properties>
7272

src/main/java/com/snowflake/kafka/connector/internal/streaming/schemaevolution/iceberg/IcebergColumnTypeMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ String mapToColumnTypeFromIcebergSchema(Type apacheIcebergType) {
6262
return "ARRAY";
6363
case MAP:
6464
return "MAP";
65+
case VARIANT:
66+
return "VARIANT";
6567
default:
6668
throw SnowflakeErrors.ERROR_5025.getException(
6769
"Data type: " + apacheIcebergType.typeId().name());

src/test/java/com/snowflake/kafka/connector/streaming/iceberg/IcebergIngestionNoSchemaEvolutionIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class IcebergIngestionNoSchemaEvolutionIT extends IcebergIngestionIT {
5050
+ "array3 ARRAY(BOOLEAN),"
5151
+ "array4 ARRAY(LONG),"
5252
+ "array5 ARRAY(ARRAY(LONG)),"
53+
+ "var VARIANT,"
5354
+ "nestedRecord "
5455
+ PRIMITIVE_JSON_RECORD_CONTENT_OBJECT_SCHEMA
5556
+ ","

0 commit comments

Comments
 (0)