Skip to content

Commit bc3a862

Browse files
Moktofruch
authored andcommitted
feat: wip
1 parent 6eaceb0 commit bc3a862

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cassandra/cqltypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,8 @@ def serialize_safe(cls, val, protocol_version):
10271027
item = val[i]
10281028
except TypeError:
10291029
item = getattr(val, fieldname, None)
1030+
if item is None and not hasattr(val, fieldname):
1031+
log.warning(f"field {fieldname} is part of the UDT {cls.typename} but is not present in the value {val}")
10301032

10311033
if item is not None:
10321034
packed_item = subtype.to_binary(item, proto_version)

0 commit comments

Comments
 (0)