MCPcopy Create free account
hub / github.com/feast-dev/feast / read_csv

Method read_csv

sdk/python/feast/infra/ray_initializer.py:418–430  ·  view source on GitHub ↗

Read CSV files - dispatched via @ray.remote to cluster workers.

(self, path: Union[str, List[str]], **kwargs)

Source from the content-addressed store, hash-verified

416 return RemoteDatasetProxy(remote_fn.remote(path, kwargs))
417
418 def read_csv(self, path: Union[str, List[str]], **kwargs) -> Any:
419 """Read CSV files - dispatched via @ray.remote to cluster workers."""
420 from feast.infra.ray_shared_utils import RemoteDatasetProxy
421
422 @ray.remote
423 def _remote(file_path, read_kwargs):
424 import ray
425
426 return ray.data.read_csv(file_path, **read_kwargs)
427
428 opts = self._get_task_options()
429 remote_fn = _remote.options(**opts) if opts else _remote
430 return RemoteDatasetProxy(remote_fn.remote(path, kwargs))
431
432 def read_json(self, path: Union[str, List[str]], **kwargs) -> Any:
433 """Read JSON/JSONL files - dispatched via @ray.remote to cluster workers."""

Callers

nothing calls this directly

Calls 2

_get_task_optionsMethod · 0.95
RemoteDatasetProxyClass · 0.90

Tested by

no test coverage detected