@@ -387,7 +387,7 @@ def version(self):
387387 return result
388388
389389 @property
390- def project (self ) -> Union [ str , None ] :
390+ def project (self ) -> str :
391391 """
392392 Retrieve currently active project
393393
@@ -949,6 +949,7 @@ def get_historical_features(
949949 >>> output_file_uri = feature_retrieval_job.get_output_file_uri()
950950 "gs://some-bucket/output/
951951 """
952+ project = project or FEAST_DEFAULT_OPTIONS [CONFIG_PROJECT_KEY ]
952953 feature_tables = self ._get_feature_tables_from_feature_refs (
953954 feature_refs , project
954955 )
@@ -1001,7 +1002,12 @@ def get_historical_features(
10011002 )
10021003 else :
10031004 return start_historical_feature_retrieval_job (
1004- self , entity_source , feature_tables , output_format , output_location ,
1005+ client = self ,
1006+ project = self .project ,
1007+ entity_source = entity_source ,
1008+ feature_tables = feature_tables ,
1009+ output_format = output_format ,
1010+ output_path = output_location ,
10051011 )
10061012
10071013 def get_historical_features_df (
@@ -1043,7 +1049,10 @@ def get_historical_features_df(
10431049 feature_refs , project
10441050 )
10451051 return start_historical_feature_retrieval_spark_session (
1046- self , entity_source , feature_tables
1052+ client = self ,
1053+ project = self .project ,
1054+ entity_source = entity_source ,
1055+ feature_tables = feature_tables ,
10471056 )
10481057
10491058 def _get_feature_tables_from_feature_refs (
@@ -1079,7 +1088,13 @@ def start_offline_to_online_ingestion(
10791088 :return: Spark Job Proxy object
10801089 """
10811090 if not self ._use_job_service :
1082- return start_offline_to_online_ingestion (feature_table , start , end , self )
1091+ return start_offline_to_online_ingestion (
1092+ client = self ,
1093+ project = self .project ,
1094+ feature_table = feature_table ,
1095+ start = start ,
1096+ end = end ,
1097+ )
10831098 else :
10841099 request = StartOfflineToOnlineIngestionJobRequest (
10851100 project = self .project , table_name = feature_table .name ,
@@ -1096,7 +1111,10 @@ def start_stream_to_online_ingestion(
10961111 ) -> SparkJob :
10971112 if not self ._use_job_service :
10981113 return start_stream_to_online_ingestion (
1099- feature_table , extra_jars or [], self
1114+ client = self ,
1115+ project = self .project ,
1116+ feature_table = feature_table ,
1117+ extra_jars = extra_jars or [],
11001118 )
11011119 else :
11021120 request = StartStreamToOnlineIngestionJobRequest (
0 commit comments