@@ -74,17 +74,17 @@ async def list_by_job_ids(
7474 job_ids : Sequence [int ],
7575 since : datetime ,
7676 until : datetime | None ,
77- source_ids : Sequence [int ],
78- target_ids : Sequence [int ],
77+ source_dataset_ids : Sequence [int ],
78+ target_dataset_ids : Sequence [int ],
7979 ):
8080 if not job_ids :
8181 return []
8282
8383 where = [
8484 ColumnLineage .created_at >= since ,
8585 ColumnLineage .job_id == any_ (job_ids ), # type: ignore[arg-type]
86- ColumnLineage .source_dataset_id == any_ (source_ids ), # type: ignore[arg-type]
87- ColumnLineage .target_dataset_id == any_ (target_ids ), # type: ignore[arg-type]
86+ ColumnLineage .source_dataset_id == any_ (source_dataset_ids ), # type: ignore[arg-type]
87+ ColumnLineage .target_dataset_id == any_ (target_dataset_ids ), # type: ignore[arg-type]
8888 ]
8989 if until :
9090 where .append (ColumnLineage .created_at <= until )
@@ -96,17 +96,17 @@ async def list_by_run_ids(
9696 run_ids : Sequence [UUID ],
9797 since : datetime ,
9898 until : datetime | None ,
99- source_ids : Sequence [int ],
100- target_ids : Sequence [int ],
99+ source_dataset_ids : Sequence [int ],
100+ target_dataset_ids : Sequence [int ],
101101 ):
102102 if not run_ids :
103103 return []
104104
105105 where = [
106106 ColumnLineage .created_at >= since ,
107107 ColumnLineage .run_id == any_ (run_ids ), # type: ignore[arg-type]
108- ColumnLineage .source_dataset_id == any_ (source_ids ), # type: ignore[arg-type]
109- ColumnLineage .target_dataset_id == any_ (target_ids ), # type: ignore[arg-type]
108+ ColumnLineage .source_dataset_id == any_ (source_dataset_ids ), # type: ignore[arg-type]
109+ ColumnLineage .target_dataset_id == any_ (target_dataset_ids ), # type: ignore[arg-type]
110110 ]
111111 if until :
112112 where .append (ColumnLineage .created_at <= until )
@@ -115,8 +115,8 @@ async def list_by_run_ids(
115115 async def list_by_operation_ids (
116116 self ,
117117 operation_ids : Sequence [UUID ],
118- source_ids : Sequence [int ],
119- target_ids : Sequence [int ],
118+ source_dataset_ids : Sequence [int ],
119+ target_dataset_ids : Sequence [int ],
120120 ):
121121 if not operation_ids :
122122 return []
@@ -130,8 +130,8 @@ async def list_by_operation_ids(
130130 ColumnLineage .created_at >= min_created_at ,
131131 ColumnLineage .created_at <= max_created_at ,
132132 ColumnLineage .operation_id == any_ (operation_ids ), # type: ignore[arg-type]
133- ColumnLineage .source_dataset_id == any_ (source_ids ), # type: ignore[arg-type]
134- ColumnLineage .target_dataset_id == any_ (target_ids ), # type: ignore[arg-type]
133+ ColumnLineage .source_dataset_id == any_ (source_dataset_ids ), # type: ignore[arg-type]
134+ ColumnLineage .target_dataset_id == any_ (target_dataset_ids ), # type: ignore[arg-type]
135135 ]
136136 return await self ._get_column_lineage_with_column_relations (where )
137137
0 commit comments