Skip to content

Commit 1dddebc

Browse files
committed
feat: Add to_remote_storage method to RetrievalJob
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent 38fd001 commit 1dddebc

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

sdk/python/feast/infra/offline_stores/offline_store.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,23 @@ def metadata(self) -> Optional[RetrievalMetadata]:
163163
"""
164164
pass
165165

166+
def supports_remote_storage_export(self) -> bool:
167+
"""
168+
This method should return True if the RetrievalJob supports `to_remote_storage()`.
169+
"""
170+
return False
171+
172+
def to_remote_storage(self) -> List[str]:
173+
"""
174+
This method should export the result of this RetrievalJob to
175+
remote storage (such as S3, GCS, HDFS, etc).
176+
Implementations of this method should export the results as
177+
multiple parquet files, each file sized appropriately
178+
depending on how much data is being returned by the retrieval
179+
job.
180+
"""
181+
raise NotImplementedError()
182+
166183

167184
class OfflineStore(ABC):
168185
"""

0 commit comments

Comments
 (0)