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

Function _read_data_source

sdk/python/feast/infra/offline_stores/duckdb.py:44–57  ·  view source on GitHub ↗
(data_source: DataSource, repo_path: str)

Source from the content-addressed store, hash-verified

42
43
44def _read_data_source(data_source: DataSource, repo_path: str) -> Table:
45 assert isinstance(data_source, FileSource)
46
47 if isinstance(data_source.file_format, ParquetFormat) or (
48 data_source.file_format is None and data_source.path.endswith(".parquet")
49 ):
50 return ibis.read_parquet(data_source.path)
51 elif isinstance(data_source.file_format, DeltaFormat):
52 if data_source.s3_endpoint_override:
53 storage_options = {
54 "AWS_ENDPOINT_URL": data_source.s3_endpoint_override,
55 }
56 return ibis.read_delta(data_source.path, storage_options=storage_options)
57 return ibis.read_delta(data_source.path)
58
59
60def _write_data_source(

Callers

nothing calls this directly

Calls 1

read_parquetMethod · 0.45

Tested by

no test coverage detected