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

Function _read_datasource

sdk/python/feast/infra/offline_stores/dask.py:984–1003  ·  view source on GitHub ↗
(data_source, repo_path)

Source from the content-addressed store, hash-verified

982
983
984def _read_datasource(data_source, repo_path) -> dd.DataFrame:
985 storage_options = (
986 {
987 "client_kwargs": {
988 "endpoint_url": data_source.file_options.s3_endpoint_override
989 }
990 }
991 if data_source.file_options.s3_endpoint_override
992 else None
993 )
994
995 path = FileSource.get_uri_for_file_path(
996 repo_path=repo_path,
997 uri=data_source.file_options.uri,
998 )
999
1000 return dd.read_parquet(
1001 path,
1002 storage_options=storage_options,
1003 )
1004
1005
1006def _run_dask_field_mapping(

Callers 2

evaluate_offline_jobMethod · 0.85

Calls 2

get_uri_for_file_pathMethod · 0.80
read_parquetMethod · 0.45

Tested by

no test coverage detected