From d5acf51dad5db67e2a0f76192cfcb10050161178 Mon Sep 17 00:00:00 2001 From: crispin-ki <131684659+crispin-ki@users.noreply.github.com> Date: Tue, 5 Sep 2023 18:50:47 +0100 Subject: [PATCH] fix: Remove unwanted excessive splitting of gcs path, so expected gcs parquet paths are returned from BigQueryRetrievalJob.to_remote_storage() (#3730) Remove unwanted excessive splitting of gcs path Signed-off-by: Crispin Logan --- sdk/python/feast/infra/offline_stores/bigquery.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/python/feast/infra/offline_stores/bigquery.py b/sdk/python/feast/infra/offline_stores/bigquery.py index 5dd8f61bced..5913b60f62f 100644 --- a/sdk/python/feast/infra/offline_stores/bigquery.py +++ b/sdk/python/feast/infra/offline_stores/bigquery.py @@ -577,7 +577,6 @@ def to_remote_storage(self) -> List[str]: else: storage_client = StorageClient(project=self.client.project) bucket, prefix = self._gcs_path[len("gs://") :].split("/", 1) - prefix = prefix.rsplit("/", 1)[0] if prefix.startswith("/"): prefix = prefix[1:]