Ensure UDT are validated

This commit is contained in:
Alan Boudreault 2017-04-27 15:19:24 -04:00
parent 25e6cf3d0a
commit 21232c7b35

View File

@ -973,6 +973,13 @@ class UserDefinedType(Column):
field_names=[c.db_field_name for c in self.user_type._fields.values()],
field_types=[c.cql_type for c in self.user_type._fields.values()])
def validate(self, value):
val = super(UserDefinedType, self).validate(value)
if val is None:
return
val.validate()
return val
def resolve_udts(col_def, out_list):
for col in col_def.sub_types: