uranusjr commented on code in PR #40478:
URL: https://github.com/apache/airflow/pull/40478#discussion_r1668080756


##########
airflow/datasets/manager.py:
##########
@@ -58,6 +64,12 @@ def create_datasets(self, dataset_models: 
list[DatasetModel], session: Session)
         for dataset_model in dataset_models:
             self.notify_dataset_created(dataset=Dataset(uri=dataset_model.uri, 
extra=dataset_model.extra))
 
+    def create_dataset_aliases(self, dataset_alias_models: 
list[DatasetAliasModel], session: Session) -> None:
+        """Create new dataset aliases."""
+        for dataset_alias_model in dataset_alias_models:
+            session.add(dataset_alias_model)

Review Comment:
   Can this use `add_all` instead? (And if it does, is a separate function 
still useful?)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to