laskoviymishka commented on code in PR #2697:
URL: https://github.com/apache/iceberg-go/pull/2697#discussion_r4722309388


##########
literals.go:
##########
@@ -1316,33 +1316,33 @@ 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()
+                       v, _ := UUID(u).MarshalBinary()

Review Comment:
   Fixed in 1bb7c592bc.



##########
literals.go:
##########
@@ -1356,11 +1356,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 UUID(u).MarshalBinary()

Review Comment:
   Fixed in 1bb7c592bc.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to