Skip to content

Commit faface0

Browse files
committed
NotImplementedError for List of Dictionaries
1 parent 4567919 commit faface0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stix2/datastore/relational_db/table_creation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ def generate_table_information(self, name, db_backend, metadata, schema_name, ta
725725
elif self.contained == KillChainPhase:
726726
tables.append(create_kill_chain_phases_table(name, metadata, db_backend, schema_name, table_name))
727727
return tables
728+
elif isinstance(self.contained, DictionaryProperty):
729+
raise NotImplementedError(f"A list of dictionaries property for {table_name}.{name} is not supported for the RDB DataStore yet") # noqa: E131
728730
else:
729731
# if ARRAY is not allowed, it is handled by a previous if clause
730732
if isinstance(self.contained, Property):

0 commit comments

Comments
 (0)