in common/big_query/big_query_adapter.py [0:0]
def get_last_partition(self, table_ref: str) -> list[dict]:
"""
Retrieves the data from the most recent partition of
the specified table.
"""
last_partition_date = self._get_target_creation_date(table_ref)
last_partition_query_job = self._execute_query(
table_ref, last_partition_date
)
last_partition = [
dict(row.items()) for row in last_partition_query_job.result()
]
return last_partition