File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,6 @@ class ExceptionsMessage:
227
227
FunctionIncorrectType = "The function of schema type must be Function."
228
228
FieldType = "The field of schema type must be FieldSchema."
229
229
FieldDtype = "Field dtype must be of DataType"
230
- FieldNamesDuplicate = "Duplicate field names are not allowed."
231
230
ExprType = "The type of expr must be string ,but %r is given."
232
231
EnvConfigErr = "Environment variable %s has a wrong format, please check it: %s"
233
232
AmbiguousIndexName = "There are multiple indexes, please specify the index_name."
Original file line number Diff line number Diff line change @@ -140,9 +140,6 @@ def _check_fields(self):
140
140
primary_field_name = self ._kwargs .get ("primary_field" , None )
141
141
partition_key_field_name = self ._kwargs .get ("partition_key_field" , None )
142
142
clustering_key_field_name = self ._kwargs .get ("clustering_key_field" , None )
143
- field_names = [field .name for field in self ._fields ]
144
- if len (field_names ) != len (set (field_names )):
145
- raise ParamError (message = ExceptionsMessage .FieldNamesDuplicate )
146
143
for field in self ._fields :
147
144
if primary_field_name and primary_field_name == field .name :
148
145
field .is_primary = True
You can’t perform that action at this time.
0 commit comments