54
54
"int32" : "{{-# UNPACK #-}} !Int32" ,
55
55
"int16" : "{{-# UNPACK #-}} !Int16" ,
56
56
"int64" : "{{-# UNPACK #-}} !Int64" ,
57
+ "float64" : "{{-# UNPACK #-}} !Double" ,
57
58
"string" : "!Text" ,
58
59
"bool" : "Bool" ,
59
60
"bytes" : "!ByteString" ,
@@ -131,6 +132,9 @@ def get_field_default(field_type, default=None):
131
132
"DescribeGroups" : (0 , 1 ),
132
133
"FindCoordinator" : (0 , 1 ),
133
134
"CreatePartitions" : (0 , 1 ),
135
+ "CreateAcls" : (0 , 1 ),
136
+ "DeleteAcls" : (0 , 1 ),
137
+ "DescribeAcls" : (0 , 1 )
134
138
}
135
139
136
140
# -----------------------------------------------------------------------------
@@ -306,10 +310,11 @@ def format(self):
306
310
307
311
def append_hs_datas (datas : List [HsData ], data : HsData ):
308
312
same_found = False
313
+ totally_same_found = False
309
314
for data_ in datas :
310
315
if data .name == data_ .name :
311
- # The same data_name should not has the same version
312
- assert data . version != data_ . version
316
+ if ( data . version == data_ . version and data . fields == data_ . fields ):
317
+ totally_same_found = True
313
318
314
319
# Use the first same type is OK
315
320
if (
@@ -322,8 +327,10 @@ def append_hs_datas(datas: List[HsData], data: HsData):
322
327
f"{ data .name } V{ data_ .version } "
323
328
)
324
329
data .fields = data_ .version
330
+
325
331
same_found = True
326
- datas .append (data )
332
+ if (not totally_same_found ):
333
+ datas .append (data )
327
334
328
335
329
336
# -----------------------------------------------------------------------------
0 commit comments