Skip to content

Commit 1ae4d78

Browse files
chore: bump iceberg-go dependency (#4343)
1 parent 0cfa317 commit 1ae4d78

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ require (
4848
github.com/PaesslerAG/gval v1.2.4
4949
github.com/PaesslerAG/jsonpath v0.1.1
5050
github.com/a2aproject/a2a-go v0.3.12
51-
github.com/apache/iceberg-go v0.5.1-0.20260413191103-8587fd1d2516
51+
github.com/apache/iceberg-go v0.5.1-0.20260423164746-a1d883edd53d
5252
github.com/apache/pulsar-client-go v0.18.0
5353
github.com/auth0/go-jwt-middleware/v2 v2.3.1
5454
github.com/authzed/authzed-go v1.8.0
@@ -109,7 +109,6 @@ require (
109109
github.com/google/go-cmp v0.7.0
110110
github.com/googleapis/go-sql-spanner v1.24.1
111111
github.com/gosimple/slug v1.15.0
112-
github.com/hamba/avro/v2 v2.31.0
113112
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c
114113
github.com/jackc/pgx/v5 v5.9.1
115114
github.com/jhump/protoreflect v1.18.0
@@ -264,6 +263,7 @@ require (
264263
github.com/google/jsonschema-go v0.4.2 // indirect
265264
github.com/google/wire v0.7.0 // indirect
266265
github.com/gookit/color v1.6.0 // indirect
266+
github.com/hamba/avro/v2 v2.31.0 // indirect
267267
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
268268
github.com/hashicorp/go-retryablehttp v0.7.8 // indirect
269269
github.com/hashicorp/go-version v1.9.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ github.com/apache/arrow/go/v12 v12.0.1 h1:JsR2+hzYYjgSUkBSaahpqCetqZMr76djX80fF/
343343
github.com/apache/arrow/go/v12 v12.0.1/go.mod h1:weuTY7JvTG/HDPtMQxEUp7pU73vkLWMLpY67QwZ/WWw=
344344
github.com/apache/arrow/go/v15 v15.0.2 h1:60IliRbiyTWCWjERBCkO1W4Qun9svcYoZrSLcyOsMLE=
345345
github.com/apache/arrow/go/v15 v15.0.2/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA=
346-
github.com/apache/iceberg-go v0.5.1-0.20260413191103-8587fd1d2516 h1:fbnzDRI3c+yxHlZxkktBC3dZnHAWBqFsoibGheSBNxo=
347-
github.com/apache/iceberg-go v0.5.1-0.20260413191103-8587fd1d2516/go.mod h1:XI6F/iGSAE/XLpVVeq79fr9esWKXE7apLZdY+aMy1gA=
346+
github.com/apache/iceberg-go v0.5.1-0.20260423164746-a1d883edd53d h1:ODY0YUkHs4MsROnoegqfAHjudYb+pcx3WD3cnVNf8K0=
347+
github.com/apache/iceberg-go v0.5.1-0.20260423164746-a1d883edd53d/go.mod h1:bVN7fytnzGqC+LXlPdq1wHOkbKWj5U8LARZQ51igrIg=
348348
github.com/apache/pulsar-client-go v0.18.0 h1:YsySoOds7WCXkRcOKHb85gk/v1Jndp+2oCkkRQEowUA=
349349
github.com/apache/pulsar-client-go v0.18.0/go.mod h1:GKmTD1u5YLuhUnoVTNGdhdGNAYhoglWNWgwLJZTljAw=
350350
github.com/apache/thrift v0.0.0-20181112125854-24918abba929/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=

internal/impl/iceberg/icebergx/stats.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919

2020
"github.com/apache/iceberg-go"
2121
"github.com/google/uuid"
22-
"github.com/hamba/avro/v2"
2322
"github.com/parquet-go/parquet-go/format"
23+
"github.com/twmb/avro/atype"
2424
)
2525

2626
// ParquetStats contains statistics extracted from a parquet file footer
@@ -298,25 +298,25 @@ func goValueToLiteral(val any, iceType iceberg.Type) (iceberg.Literal, error) {
298298
}
299299
}
300300

301-
// PartitionFieldMaps returns avro logical types and fixed sizes for partition fields.
301+
// PartitionFieldMaps returns logical type strings and fixed sizes for partition fields.
302302
// These are needed for the DataFileBuilder to properly serialize partition data.
303-
func PartitionFieldMaps(spec iceberg.PartitionSpec, schema *iceberg.Schema) (map[int]avro.LogicalType, map[int]int) {
304-
logicalTypes := make(map[int]avro.LogicalType)
303+
func PartitionFieldMaps(spec iceberg.PartitionSpec, schema *iceberg.Schema) (map[int]string, map[int]int) {
304+
logicalTypes := make(map[int]string)
305305
fixedSizes := make(map[int]int)
306306

307307
partType := spec.PartitionType(schema)
308308
for _, field := range partType.FieldList {
309309
switch t := field.Type.(type) {
310310
case iceberg.DateType:
311-
logicalTypes[field.ID] = avro.Date
311+
logicalTypes[field.ID] = atype.Date
312312
case iceberg.TimeType:
313-
logicalTypes[field.ID] = avro.TimeMicros
313+
logicalTypes[field.ID] = atype.TimeMicros
314314
case iceberg.TimestampType, iceberg.TimestampTzType:
315-
logicalTypes[field.ID] = avro.TimestampMicros
315+
logicalTypes[field.ID] = atype.TimestampMicros
316316
case iceberg.UUIDType:
317-
logicalTypes[field.ID] = avro.UUID
317+
logicalTypes[field.ID] = atype.UUID
318318
case iceberg.DecimalType:
319-
logicalTypes[field.ID] = avro.Decimal
319+
logicalTypes[field.ID] = atype.Decimal
320320
fixedSizes[field.ID] = t.Scale()
321321
}
322322
}

0 commit comments

Comments
 (0)