Copy collection columns wherever we construct new DCEs

This commit is contained in:
mvdbeek
2025-12-12 17:45:56 +01:00
parent d255af7578
commit 49d06524d1
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -8162,6 +8162,7 @@ class DatasetCollectionElement(Base, Dictifiable, Serializable):
collection=collection,
element_index=self.element_index,
element_identifier=self.element_identifier,
columns=self.columns,
)
return new_element
+1
View File
@@ -372,6 +372,7 @@ def _materialize_collection_element(
element=materialized_object,
element_index=element.element_index,
element_identifier=element.element_identifier,
columns=element.columns,
)
return materialized_element
+2
View File
@@ -105,6 +105,7 @@ def derefence_collection_element(
element=child_dataset_collection,
element_identifier=element.identifier,
element_index=element_index,
columns=element.columns,
)
sa_session.add(child_dataset_collection)
for index, child_element in enumerate(element.elements):
@@ -135,6 +136,7 @@ def dereference_collection_dataset_element(
element=hda,
element_identifier=element.identifier,
element_index=element_index,
columns=element.columns,
)
parent_dataset_collection.elements.append(dce)