in common/big_query/big_query_adapter.py [0:0]
def _get_target_creation_date(self, table_ref: str) -> date:
"""
Retrieves the most recent partition date from the specified table.
"""
last_date_response = self._client.query(
f"""
SELECT max({self._partition_column}) as max_date
FROM `{table_ref}`
WHERE {self._partition_column} <= CURRENT_DATE()
"""
).result()
target_creation_date = next(last_date_response).max_date
return target_creation_date