Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect path in file data source to s3 bucket #4873

Open
nboyarkin opened this issue Dec 23, 2024 · 0 comments
Open

Incorrect path in file data source to s3 bucket #4873

nboyarkin opened this issue Dec 23, 2024 · 0 comments

Comments

@nboyarkin
Copy link

Hi there! I was trying to implenet a feature store, created repo, added feature.parquet to the s3 bucket, made 'feast apply', then tried to get features in notebook via feature store. But it seems to be bugged.

Expected Behavior

DF with features.

Current Behavior

Error:
An error occurred while calling the read_parquet method registered to the pandas backend.
Original Message: [WinError 123] Failed querying information for path 'c:/Users/nboyarkin/Downloads/scm_forecast-1/notebooks/s3:/analytics-ds-dev-spark-upload-files/features/year.parquet'.

Steps to reproduce

fs = FeatureStore(fs_yaml_file='C:/Users/nboyarkin/Downloads/feast.yaml')

entity_df = pd.DataFrame.from_dict(
{
# entity's join key -> entity values
"store_id": [12,],
"product_id": [27279,],
# "event_timestamp" (reserved key) -> timestamps
"event_timestamp": [
datetime(2024, 11, 1),
],
}
)

training_df = fs.get_historical_features(
entity_df=entity_df,
features=[
"calendar_stats:year",
],
).to_df()

Specifications

  • Version: 0.42.0
  • Platform: windows
  • Subsystem:

Possible Solution

In feast\infra\offline_stores\dask.py, line 529, change:
if not Path(data_source.path).is_absolute()
to
if not Path(data_source.path).is_absolute() and not Path(data_source.path).parts[0] == 's3:':

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant