This is an automated email from the ASF dual-hosted git repository.
laskoviymishka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git
The following commit(s) were added to refs/heads/main by this push:
new f9c9ea246 refactor: add iceberg.UUID alias and use it in the root
package (#2697)
f9c9ea246 is described below
commit f9c9ea2468a5d55ed5503a8b3592f5c31eb6457d
Author: Andrei Tserakhau <[email protected]>
AuthorDate: Fri Nov 27 22:57:48 2026 +0100
refactor: add iceberg.UUID alias and use it in the root package (#2697)
Add internal/uuid, the only file in the root package's dependency graph
that imports github.com/google/uuid. It defines the UUID alias and thin
New, NewRandom, Parse and FromBytes wrappers plus Nil. The helpers stay
internal so the only new exported name is the iceberg.UUID alias.
The root package's code and tests now use iceberg.UUID and internal/uuid
instead of google/uuid. Since UUID is a type alias, every exported
signature is the same type as before and existing callers are
unaffected. Later changes move the other packages over, and a final one
can point the alias at the standard library behind a Go 1.27 build tag.
---
expr_json.go | 4 +---
expr_json_test.go | 2 +-
exprs.go | 9 ++++-----
exprs_test.go | 2 +-
internal/uuid/uuid.go | 40 ++++++++++++++++++++++++++++++++++++++++
literals.go | 32 ++++++++++++++------------------
literals_test.go | 6 +++---
manifest.go | 21 ++++++++++-----------
manifest_test.go | 5 ++---
transforms.go | 5 ++---
uuid.go | 23 +++++++++++++++++++++++
variant_cast.go | 5 ++---
variant_cast_test.go | 3 +--
variant_extract.go | 3 +--
visitors.go | 3 +--
visitors_test.go | 4 ++--
16 files changed, 108 insertions(+), 59 deletions(-)
diff --git a/expr_json.go b/expr_json.go
index 5dfbe64d1..27b4fad38 100644
--- a/expr_json.go
+++ b/expr_json.go
@@ -28,8 +28,6 @@ import (
"sort"
"strings"
"time"
-
- "github.com/google/uuid"
)
// JSON for boolean expressions, used as the "filter" of a REST scan-planning
@@ -360,7 +358,7 @@ func (TimestampNsLiteral) MarshalJSON() ([]byte, error) {
}
func (l UUIDLiteral) MarshalJSON() ([]byte, error) {
- return json.Marshal(uuid.UUID(l).String())
+ return json.Marshal(UUID(l).String())
}
func (l FixedLiteral) MarshalJSON() ([]byte, error) {
diff --git a/expr_json_test.go b/expr_json_test.go
index cac325c56..616c45b1c 100644
--- a/expr_json_test.go
+++ b/expr_json_test.go
@@ -23,7 +23,7 @@ import (
"testing"
"github.com/apache/iceberg-go"
- "github.com/google/uuid"
+ "github.com/apache/iceberg-go/internal/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/exprs.go b/exprs.go
index 0871d5e33..3fccc4c71 100644
--- a/exprs.go
+++ b/exprs.go
@@ -23,7 +23,6 @@ import (
"reflect"
"github.com/apache/arrow-go/v18/parquet/variant"
- "github.com/google/uuid"
)
//go:generate stringer -type=Operation -linecomment
@@ -473,7 +472,7 @@ func createBoundRef(field NestedField, acc accessor, name
string) BoundReference
case DecimalType:
return &boundRef[Decimal]{field: field, acc: acc, fullName:
name}
case UUIDType:
- return &boundRef[uuid.UUID]{field: field, acc: acc, fullName:
name}
+ return &boundRef[UUID]{field: field, acc: acc, fullName: name}
case VariantType:
return &boundRef[variant.Value]{field: field, acc: acc,
fullName: name}
}
@@ -676,7 +675,7 @@ func createBoundUnaryPredicate(op Operation, term
BoundTerm) BoundUnaryPredicate
case DecimalType:
return newBoundUnaryPred[Decimal](op, term)
case UUIDType:
- return newBoundUnaryPred[uuid.UUID](op, term)
+ return newBoundUnaryPred[UUID](op, term)
case VariantType:
return newBoundUnaryPred[variant.Value](op, term)
}
@@ -898,7 +897,7 @@ func createBoundLiteralPredicate(op Operation, term
BoundTerm, lit Literal) (Bou
case DecimalType:
return newBoundLiteralPredicate[Decimal](op, term, finalLit),
nil
case UUIDType:
- return newBoundLiteralPredicate[uuid.UUID](op, term, finalLit),
nil
+ return newBoundLiteralPredicate[UUID](op, term, finalLit), nil
case VariantType:
return nil, fmt.Errorf("%w: ordered predicates are not
supported on variant fields", ErrInvalidArgument)
}
@@ -1081,7 +1080,7 @@ func createBoundSetPredicate(op Operation, term
BoundTerm, lits Set[Literal]) (B
case DecimalType:
return newBoundSetPredicate[Decimal](op, term, typedSet), nil
case UUIDType:
- return newBoundSetPredicate[uuid.UUID](op, term, typedSet), nil
+ return newBoundSetPredicate[UUID](op, term, typedSet), nil
}
return nil, fmt.Errorf("%w: invalid bound type for set predicate - %s",
diff --git a/exprs_test.go b/exprs_test.go
index 7ad099b7d..e0f66c710 100644
--- a/exprs_test.go
+++ b/exprs_test.go
@@ -27,7 +27,7 @@ import (
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/arrow-go/v18/parquet/variant"
"github.com/apache/iceberg-go"
- "github.com/google/uuid"
+ "github.com/apache/iceberg-go/internal/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/internal/uuid/uuid.go b/internal/uuid/uuid.go
new file mode 100644
index 000000000..9bd3952b0
--- /dev/null
+++ b/internal/uuid/uuid.go
@@ -0,0 +1,40 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+// Package uuid wraps the UUID implementation so it can be swapped for the
+// standard library without touching callers, which should use this package
+// instead of naming the implementation. Only API that both
+// github.com/google/uuid and the standard library uuid package can provide
+// belongs here.
+package uuid
+
+import "github.com/google/uuid"
+
+// UUID is a 16-byte RFC 9562 UUID.
+type UUID = uuid.UUID
+
+// New returns a random (version 4) UUID.
+func New() UUID { return uuid.New() }
+
+// Parse decodes s into a UUID.
+func Parse(s string) (UUID, error) { return uuid.Parse(s) }
+
+// MustParse is like Parse but panics if s cannot be parsed.
+func MustParse(s string) UUID { return uuid.MustParse(s) }
+
+// FromBytes returns the UUID held in b, which must be exactly 16 bytes long.
+func FromBytes(b []byte) (UUID, error) { return uuid.FromBytes(b) }
diff --git a/literals.go b/literals.go
index d3af91088..009cf2ad9 100644
--- a/literals.go
+++ b/literals.go
@@ -35,14 +35,14 @@ import (
"github.com/apache/arrow-go/v18/arrow"
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/arrow-go/v18/parquet/variant"
- "github.com/google/uuid"
+ "github.com/apache/iceberg-go/internal/uuid"
)
// LiteralType is a generic type constraint for the explicit Go types that we
allow
// for literal values. This represents the actual primitive types that exist
in Iceberg
type LiteralType interface {
bool | int32 | int64 | float32 | float64 | Date |
- Time | Timestamp | TimestampNano | string | []byte | uuid.UUID
| Decimal |
+ Time | Timestamp | TimestampNano | string | []byte | UUID |
Decimal |
variant.Value
}
@@ -112,7 +112,7 @@ func NewLiteral[T LiteralType](val T) Literal {
return StringLiteral(*v)
case *[]byte:
return BinaryLiteral(*v)
- case *uuid.UUID:
+ case *UUID:
return UUIDLiteral(*v)
case *Decimal:
return DecimalLiteral(*v)
@@ -1316,35 +1316,31 @@ func (f *FixedLiteral) UnmarshalBinary(data []byte)
error {
return nil
}
-type UUIDLiteral uuid.UUID
+type UUIDLiteral UUID
-func (UUIDLiteral) Comparator() Comparator[uuid.UUID] {
- return func(v1, v2 uuid.UUID) int {
+func (UUIDLiteral) Comparator() Comparator[UUID] {
+ return func(v1, v2 UUID) int {
return bytes.Compare(v1[:], v2[:])
}
}
-func (UUIDLiteral) Type() Type { return PrimitiveTypes.UUID }
-func (u UUIDLiteral) Value() uuid.UUID { return uuid.UUID(u) }
-func (u UUIDLiteral) Any() any { return u.Value() }
-func (u UUIDLiteral) String() string { return uuid.UUID(u).String() }
+func (UUIDLiteral) Type() Type { return PrimitiveTypes.UUID }
+func (u UUIDLiteral) Value() UUID { return UUID(u) }
+func (u UUIDLiteral) Any() any { return u.Value() }
+func (u UUIDLiteral) String() string { return UUID(u).String() }
func (u UUIDLiteral) To(typ Type) (Literal, error) {
switch t := typ.(type) {
case UUIDType:
return u, nil
case FixedType:
if len(u) == t.len {
- v, _ := uuid.UUID(u).MarshalBinary()
-
- return FixedLiteral(v), nil
+ return FixedLiteral(bytes.Clone(u[:])), nil
}
return nil, fmt.Errorf("%w: cannot convert UUIDLiteral to %s,
different length - %d <> %d",
ErrBadCast, typ, len(u), t.len)
case BinaryType:
- v, _ := uuid.UUID(u).MarshalBinary()
-
- return BinaryLiteral(v), nil
+ return BinaryLiteral(bytes.Clone(u[:])), nil
}
return nil, fmt.Errorf("%w: UUIDLiteral to %s", ErrBadCast, typ)
@@ -1356,11 +1352,11 @@ func (u UUIDLiteral) Equals(other Literal) bool {
return false
}
- return uuid.UUID(u) == uuid.UUID(rhs)
+ return UUID(u) == UUID(rhs)
}
func (u UUIDLiteral) MarshalBinary() (data []byte, err error) {
- return uuid.UUID(u).MarshalBinary()
+ return bytes.Clone(u[:]), nil
}
func (u *UUIDLiteral) UnmarshalBinary(data []byte) error {
diff --git a/literals_test.go b/literals_test.go
index 5875402b5..ed2c7e859 100644
--- a/literals_test.go
+++ b/literals_test.go
@@ -31,7 +31,7 @@ import (
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/arrow-go/v18/parquet/variant"
"github.com/apache/iceberg-go"
- "github.com/google/uuid"
+ "github.com/apache/iceberg-go/internal/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@@ -1540,7 +1540,7 @@ func TestUnmarshalBinary(t *testing.T) {
{
iceberg.PrimitiveTypes.UUID,
[]byte{0xf7, 0x9c, 0x3e, 0x09, 0x67, 0x7c, 0x4b, 0xbd,
0xa4, 0x79, 0x3f, 0x34, 0x9c, 0xb7, 0x85, 0xe7},
- iceberg.UUIDLiteral(uuid.UUID{0xf7, 0x9c, 0x3e, 0x09,
0x67, 0x7c, 0x4b, 0xbd, 0xa4, 0x79, 0x3f, 0x34, 0x9c, 0xb7, 0x85, 0xe7}),
+ iceberg.UUIDLiteral(iceberg.UUID{0xf7, 0x9c, 0x3e,
0x09, 0x67, 0x7c, 0x4b, 0xbd, 0xa4, 0x79, 0x3f, 0x34, 0x9c, 0xb7, 0x85, 0xe7}),
},
{iceberg.MustFixedTypeOf(3), []byte("foo"),
iceberg.FixedLiteral([]byte("foo"))},
{iceberg.PrimitiveTypes.Binary, []byte("foo"),
iceberg.BinaryLiteral([]byte("foo"))},
@@ -1671,7 +1671,7 @@ func TestRoundTripLiteralBinary(t *testing.T) {
{
iceberg.PrimitiveTypes.UUID,
[]byte{0xf7, 0x9c, 0x3e, 0x09, 0x67, 0x7c, 0x4b, 0xbd,
0xa4, 0x79, 0x3f, 0x34, 0x9c, 0xb7, 0x85, 0xe7},
- iceberg.UUIDLiteral(uuid.UUID{0xf7, 0x9c, 0x3e, 0x09,
0x67, 0x7c, 0x4b, 0xbd, 0xa4, 0x79, 0x3f, 0x34, 0x9c, 0xb7, 0x85, 0xe7}),
+ iceberg.UUIDLiteral(iceberg.UUID{0xf7, 0x9c, 0x3e,
0x09, 0x67, 0x7c, 0x4b, 0xbd, 0xa4, 0x79, 0x3f, 0x34, 0x9c, 0xb7, 0x85, 0xe7}),
},
{iceberg.MustFixedTypeOf(3), []byte("foo"),
iceberg.FixedLiteral([]byte("foo"))},
{iceberg.PrimitiveTypes.Binary, []byte("foo"),
iceberg.BinaryLiteral([]byte("foo"))},
diff --git a/manifest.go b/manifest.go
index 1e2193745..5dd27eea1 100644
--- a/manifest.go
+++ b/manifest.go
@@ -36,7 +36,6 @@ import (
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/iceberg-go/internal"
iceio "github.com/apache/iceberg-go/io"
- "github.com/google/uuid"
"github.com/twmb/avro"
"github.com/twmb/avro/atype"
"github.com/twmb/avro/ocf"
@@ -1551,18 +1550,18 @@ func convertPartitionBytes(value any) ([]byte, bool) {
}
}
-func convertPartitionUUID(value any) (uuid.UUID, bool) {
+func convertPartitionUUID(value any) (UUID, bool) {
switch value := value.(type) {
- case uuid.UUID:
+ case UUID:
return value, true
case [16]byte:
- return uuid.UUID(value), true
+ return UUID(value), true
case []byte:
- if len(value) != len(uuid.UUID{}) {
- return uuid.UUID{}, false
+ if len(value) != len(UUID{}) {
+ return UUID{}, false
}
- var converted uuid.UUID
+ var converted UUID
copy(converted[:], value)
return converted, true
@@ -1571,7 +1570,7 @@ func convertPartitionUUID(value any) (uuid.UUID, bool) {
return convertPartitionUUID(literal)
}
- return uuid.UUID{}, false
+ return UUID{}, false
}
}
@@ -1639,7 +1638,7 @@ func newPartitionFieldStat(typ PrimitiveType)
(fieldStats, error) {
case TimestampNsType, TimestampTzNsType:
return
makePartitionFieldStats[TimestampNano](convertPartitionTimestampNano), nil
case UUIDType:
- return
makePartitionFieldStats[uuid.UUID](convertPartitionUUID), nil
+ return makePartitionFieldStats[UUID](convertPartitionUUID), nil
case BinaryType:
return makePartitionFieldStats[[]byte](convertPartitionBytes),
nil
case FixedType:
@@ -2602,7 +2601,7 @@ func encodeDecimalBytes(dec DecimalLiteral, fixedSize
int) ([]byte, error) {
}
func convertUUIDValue(v any) any {
- if uuidVal, ok := v.(uuid.UUID); ok {
+ if uuidVal, ok := v.(UUID); ok {
return [16]byte(uuidVal)
}
@@ -2812,7 +2811,7 @@ func (d *dataFile) convertAvroValueToIcebergType(v any,
fieldID int) any {
return v
case atype.UUID:
if uuidArr, ok := v.([16]byte); ok {
- return uuid.UUID(uuidArr)
+ return UUID(uuidArr)
}
return v
diff --git a/manifest_test.go b/manifest_test.go
index 5b4ee879e..ebd1eff12 100644
--- a/manifest_test.go
+++ b/manifest_test.go
@@ -37,7 +37,6 @@ import (
"github.com/apache/iceberg-go/internal"
"github.com/apache/iceberg-go/internal/iomock"
iceio "github.com/apache/iceberg-go/io"
- "github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
@@ -538,7 +537,7 @@ func TestPartitionFieldStatsAcceptsConvertibleValues(t
*testing.T) {
name: "uuid from array",
typ: PrimitiveTypes.UUID,
value: [16]byte{1, 2, 3, 4},
- want: NewLiteral(uuid.UUID{1, 2, 3, 4}),
+ want: NewLiteral(UUID{1, 2, 3, 4}),
},
{
name: "decimal from decimal literal",
@@ -638,7 +637,7 @@ func TestPartitionFieldStatsRejectsSentinelLiterals(t
*testing.T) {
}
func TestPartitionFieldStatsRejectsInvalidUUIDLengths(t *testing.T) {
- for _, value := range [][]byte{make([]byte, len(uuid.UUID{})-1),
make([]byte, len(uuid.UUID{})+1)} {
+ for _, value := range [][]byte{make([]byte, len(UUID{})-1),
make([]byte, len(UUID{})+1)} {
stats, err := newPartitionFieldStat(PrimitiveTypes.UUID)
if err != nil {
t.Fatal(err)
diff --git a/transforms.go b/transforms.go
index e16347279..b6a411c95 100644
--- a/transforms.go
+++ b/transforms.go
@@ -33,7 +33,6 @@ import (
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/iceberg-go/internal"
- "github.com/google/uuid"
"github.com/twmb/murmur3"
)
@@ -705,7 +704,7 @@ func (t BucketTransform) Transformer(src Type) func(any)
Optional[int32] {
return murmur3.Sum32(v)
}
- u := v.(uuid.UUID)
+ u := v.(UUID)
return murmur3.Sum32(u[:])
}
@@ -1566,7 +1565,7 @@ func transformLiteral[T LiteralType](fn func(any)
Optional[T], lit Literal) Lite
case BinaryLiteral:
return NewLiteral(fn([]byte(l)).Val)
case UUIDLiteral:
- return NewLiteral(fn(uuid.UUID(l)).Val)
+ return NewLiteral(fn(UUID(l)).Val)
case DecimalLiteral:
return NewLiteral(fn(Decimal(l)).Val)
}
diff --git a/uuid.go b/uuid.go
new file mode 100644
index 000000000..0ff83fabe
--- /dev/null
+++ b/uuid.go
@@ -0,0 +1,23 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package iceberg
+
+import "github.com/apache/iceberg-go/internal/uuid"
+
+// UUID is the type of Iceberg uuid values.
+type UUID = uuid.UUID
diff --git a/variant_cast.go b/variant_cast.go
index f7db8e0da..8dfcb8b59 100644
--- a/variant_cast.go
+++ b/variant_cast.go
@@ -23,7 +23,6 @@ import (
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/arrow-go/v18/parquet/variant"
"github.com/apache/iceberg-go/internal"
- "github.com/google/uuid"
)
const (
@@ -157,7 +156,7 @@ func exactVariantMatch(pt variant.Type, raw any, typ
PrimitiveType) (any, bool)
}
case UUIDType:
if pt == variant.UUID {
- return raw.(uuid.UUID), true
+ return raw.(UUID), true
}
case StringType:
if pt == variant.String {
@@ -270,7 +269,7 @@ func literalFromCastValue(result any) Literal {
return NewLiteral(r)
case []byte:
return NewLiteral(r)
- case uuid.UUID:
+ case UUID:
return NewLiteral(r)
case Decimal:
return NewLiteral(r)
diff --git a/variant_cast_test.go b/variant_cast_test.go
index 285689a39..6aa2e85a8 100644
--- a/variant_cast_test.go
+++ b/variant_cast_test.go
@@ -24,7 +24,6 @@ import (
"github.com/apache/arrow-go/v18/arrow/decimal"
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/arrow-go/v18/parquet/variant"
- "github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@@ -88,7 +87,7 @@ func TestCastVariantTimestampTZ(t *testing.T) {
}
func TestCastVariantLiteral(t *testing.T) {
- testUUID := uuid.UUID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16}
+ testUUID := UUID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
for _, tt := range []struct {
name string
diff --git a/variant_extract.go b/variant_extract.go
index 6877906dd..ebfde346c 100644
--- a/variant_extract.go
+++ b/variant_extract.go
@@ -21,7 +21,6 @@ import (
"fmt"
"github.com/apache/arrow-go/v18/parquet/variant"
- "github.com/google/uuid"
)
// BoundExtract is a bound variant sub-path term used for metrics pruning and
residual evaluation.
@@ -145,7 +144,7 @@ func createBoundExtract(ref BoundReference, fields
[]string, path string, typ Pr
case DecimalType:
return &boundExtract[Decimal]{ref: ref, fields: fields, path:
path, typ: typ, acc: acc}
case UUIDType:
- return &boundExtract[uuid.UUID]{ref: ref, fields: fields, path:
path, typ: typ, acc: acc}
+ return &boundExtract[UUID]{ref: ref, fields: fields, path:
path, typ: typ, acc: acc}
}
panic("unhandled variant extract target type: " + typ.String())
}
diff --git a/visitors.go b/visitors.go
index 30e1ec0ac..726c1c532 100644
--- a/visitors.go
+++ b/visitors.go
@@ -26,7 +26,6 @@ import (
"strings"
"github.com/apache/iceberg-go/internal"
- "github.com/google/uuid"
)
// BooleanExprVisitor is an interface for recursively visiting the nodes of a
@@ -493,7 +492,7 @@ func doCmp(st StructLike, term BoundTerm, lit Literal) int {
case StringType:
return typedCmp[string](st, term, lit)
case UUIDType:
- return typedCmp[uuid.UUID](st, term, lit)
+ return typedCmp[UUID](st, term, lit)
case DecimalType:
return typedCmp[Decimal](st, term, lit)
case VariantType:
diff --git a/visitors_test.go b/visitors_test.go
index 0911c6676..ecfc402ec 100644
--- a/visitors_test.go
+++ b/visitors_test.go
@@ -25,7 +25,7 @@ import (
"github.com/apache/arrow-go/v18/arrow/decimal128"
"github.com/apache/iceberg-go"
- "github.com/google/uuid"
+ "github.com/apache/iceberg-go/internal/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@@ -1118,7 +1118,7 @@ func TestEvaluatorCmpTypes(t *testing.T) {
{iceberg.GreaterThan(iceberg.Reference("k"), []byte{0x00}),
true},
{iceberg.LessThan(iceberg.Reference("k"), []byte{0x00}), false},
{iceberg.EqualTo(iceberg.Reference("l"), uuid.New().String()),
false},
- {iceberg.EqualTo(iceberg.Reference("l"),
rowData[11].(uuid.UUID)), true},
+ {iceberg.EqualTo(iceberg.Reference("l"),
rowData[11].(iceberg.UUID)), true},
{iceberg.EqualTo(iceberg.Reference("m"), []byte{0xDE, 0xAD,
0xBE, 0xEF, 0x1}), false},
{iceberg.EqualTo(iceberg.Reference("m"), []byte{0xDE, 0xAD,
0xBE, 0xEF, 0x0}), true},
{iceberg.EqualTo(iceberg.Reference("n"),
iceberg.TimestampNano(123456789)), true},