feast-dev / feast-gcp-driver-ranking-tutorial

Feast GCP tutorial using BigQuery / Datastore to train / serve a driver ranking model
10 stars 18 forks source link

Issue in training the model step 5 #6

Open ashirali227 opened 2 years ago

ashirali227 commented 2 years ago

The error is : AttributeError Traceback (most recent call last)

in () 17 "driver_hourly_stats:conv_rate", 18 "driver_hourly_stats:acc_rate", ---> 19 "driver_hourly_stats:avg_daily_trips", 20 ], 21 ).to_df() 1 frames /usr/local/lib/python3.7/dist-packages/feast/infra/offline_stores/file.py in evaluate_historical_retrieval() 113 114 # Read offline parquet data in pyarrow format. --> 115 table = pyarrow.parquet.read_table(feature_view.batch_source.path) 116 117 # Rename columns by the field mapping dictionary if it exists AttributeError: 'BigQuerySource' object has no attribute 'path'
Felix-neko commented 2 years ago

I'm also getting the same error (feast 0.14).

/usr/local/lib/python3.7/dist-packages/feast/feature_store.py:554: DeprecationWarning: The argument 'feature_refs' is being deprecated. Please use 'features' instead. Feast 0.13 and onwards will not support the argument 'feature_refs'.
  DeprecationWarning,
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-13-342751972f9f> in <module>()
     17         "driver_hourly_stats:conv_rate",
     18         "driver_hourly_stats:acc_rate",
---> 19         "driver_hourly_stats:avg_daily_trips",
     20     ],
     21 ).to_df()

2 frames
/usr/local/lib/python3.7/dist-packages/feast/infra/offline_stores/file.py in evaluate_historical_retrieval()
    134                 # Read offline parquet data in pyarrow format.
    135                 filesystem, path = FileSource.create_filesystem_and_path(
--> 136                     feature_view.batch_source.path,
    137                     feature_view.batch_source.file_options.s3_endpoint_override,
    138                 )

AttributeError: 'BigQuerySource' object has no attribute 'path'
ashirali227 commented 2 years ago

https://github.com/vinhloc30796/feast-driver-ranking-tutorial/commit/22f67cc376cf7d37c691374aa94780016e49f734

from this link you can resolve the error

ashirali227 commented 2 years ago

I am facing this issue now!

TypeError Traceback (most recent call last)

in () 17 "driver_hourly_stats:conv_rate", 18 "driver_hourly_stats:acc_rate", ---> 19 "driver_hourly_stats:avg_daily_trips", 20 ], 21 ).to_df() 8 frames /usr/local/lib/python3.7/dist-packages/pyarrow/_parquet.pyx in pyarrow._parquet.ParquetWriter.__cinit__() TypeError: __cinit__() got an unexpected keyword argument 'use_compliant_nested_type'