Filtered imports is now much faster and works with omitted aggregates

This commit is contained in:
Dion Moult
2021-08-21 21:09:48 +10:00
parent fd603f7035
commit 5e6343885c
2 changed files with 33 additions and 19 deletions
@@ -3,7 +3,9 @@ def get_primitive_type(attribute_or_data_type):
data_type = str(attribute_or_data_type.type_of_attribute())
else:
data_type = str(attribute_or_data_type)
if data_type.find("<list") == 0:
if data_type.find("<type") == 0:
return get_primitive_type(data_type[data_type[1:].find("<")+1:])
elif data_type.find("<list") == 0:
return ("list", get_primitive_type(data_type[data_type[1:].find("<")+1:]))
elif data_type.find("<set") == 0:
return ("set", get_primitive_type(data_type[data_type[1:].find("<")+1:]))