@@ -399,14 +399,14 @@ def delete_feature_view(self, name: str):
399399 @log_exceptions_and_usage
400400 def delete_feature_service (self , name : str ):
401401 """
402- Deletes a feature service.
402+ Deletes a feature service.
403403
404- Args:
405- name: Name of feature service.
404+ Args:
405+ name: Name of feature service.
406406
407- Raises:
408- FeatureServiceNotFoundException: The feature view could not be found.
409- """
407+ Raises:
408+ FeatureServiceNotFoundException: The feature view could not be found.
409+ """
410410 return self ._registry .delete_feature_service (name , self .project )
411411
412412 def _get_features (
@@ -903,17 +903,17 @@ def create_saved_dataset(
903903 feature_service : Optional [FeatureService ] = None ,
904904 ) -> SavedDataset :
905905 """
906- Execute provided retrieval job and persist its outcome in given storage.
907- Storage type (eg, BigQuery or Redshift) must be the same as globally configured offline store.
908- After data successfully persisted saved dataset object with dataset metadata is committed to the registry.
909- Name for the saved dataset should be unique within project, since it's possible to overwrite previously stored dataset
910- with the same name.
906+ Execute provided retrieval job and persist its outcome in given storage.
907+ Storage type (eg, BigQuery or Redshift) must be the same as globally configured offline store.
908+ After data successfully persisted saved dataset object with dataset metadata is committed to the registry.
909+ Name for the saved dataset should be unique within project, since it's possible to overwrite previously stored dataset
910+ with the same name.
911911
912- Returns:
913- SavedDataset object with attached RetrievalJob
912+ Returns:
913+ SavedDataset object with attached RetrievalJob
914914
915- Raises:
916- ValueError if given retrieval job doesn't have metadata
915+ Raises:
916+ ValueError if given retrieval job doesn't have metadata
917917 """
918918 warnings .warn (
919919 "Saving dataset is an experimental feature. "
@@ -1589,11 +1589,11 @@ def _get_unique_entities(
15891589 join_key_values : Dict [str , List [Value ]],
15901590 entity_name_to_join_key_map : Dict [str , str ],
15911591 ) -> Tuple [Tuple [Dict [str , Value ], ...], Tuple [List [int ], ...]]:
1592- """ Return the set of unique composite Entities for a Feature View and the indexes at which they appear.
1592+ """Return the set of unique composite Entities for a Feature View and the indexes at which they appear.
15931593
1594- This method allows us to query the OnlineStore for data we need only once
1595- rather than requesting and processing data for the same combination of
1596- Entities multiple times.
1594+ This method allows us to query the OnlineStore for data we need only once
1595+ rather than requesting and processing data for the same combination of
1596+ Entities multiple times.
15971597 """
15981598 # Get the correct set of entity values with the correct join keys.
15991599 table_entity_values = self ._get_table_entity_values (
@@ -1629,14 +1629,14 @@ def _read_from_online_store(
16291629 requested_features : List [str ],
16301630 table : FeatureView ,
16311631 ) -> List [Tuple [List [Timestamp ], List ["FieldStatus.ValueType" ], List [Value ]]]:
1632- """ Read and process data from the OnlineStore for a given FeatureView.
1632+ """Read and process data from the OnlineStore for a given FeatureView.
16331633
1634- This method guarantees that the order of the data in each element of the
1635- List returned is the same as the order of `requested_features`.
1634+ This method guarantees that the order of the data in each element of the
1635+ List returned is the same as the order of `requested_features`.
16361636
1637- This method assumes that `provider.online_read` returns data for each
1638- combination of Entities in `entity_rows` in the same order as they
1639- are provided.
1637+ This method assumes that `provider.online_read` returns data for each
1638+ combination of Entities in `entity_rows` in the same order as they
1639+ are provided.
16401640 """
16411641 # Instantiate one EntityKeyProto per Entity.
16421642 entity_key_protos = [
@@ -1693,23 +1693,23 @@ def _populate_response_from_feature_data(
16931693 requested_features : Iterable [str ],
16941694 table : FeatureView ,
16951695 ):
1696- """ Populate the GetOnlineFeaturesResponse with feature data.
1697-
1698- This method assumes that `_read_from_online_store` returns data for each
1699- combination of Entities in `entity_rows` in the same order as they
1700- are provided.
1701-
1702- Args:
1703- feature_data: A list of data in Protobuf form which was retrieved from the OnlineStore.
1704- indexes: A list of indexes which should be the same length as `feature_data`. Each list
1705- of indexes corresponds to a set of result rows in `online_features_response`.
1706- online_features_response: The object to populate.
1707- full_feature_names: A boolean that provides the option to add the feature view prefixes to the feature names,
1708- changing them from the format "feature" to "feature_view__feature" (e.g., "daily_transactions" changes to
1709- "customer_fv__daily_transactions").
1710- requested_features: The names of the features in `feature_data`. This should be ordered in the same way as the
1711- data in `feature_data`.
1712- table: The FeatureView that `feature_data` was retrieved from.
1696+ """Populate the GetOnlineFeaturesResponse with feature data.
1697+
1698+ This method assumes that `_read_from_online_store` returns data for each
1699+ combination of Entities in `entity_rows` in the same order as they
1700+ are provided.
1701+
1702+ Args:
1703+ feature_data: A list of data in Protobuf form which was retrieved from the OnlineStore.
1704+ indexes: A list of indexes which should be the same length as `feature_data`. Each list
1705+ of indexes corresponds to a set of result rows in `online_features_response`.
1706+ online_features_response: The object to populate.
1707+ full_feature_names: A boolean that provides the option to add the feature view prefixes to the feature names,
1708+ changing them from the format "feature" to "feature_view__feature" (e.g., "daily_transactions" changes to
1709+ "customer_fv__daily_transactions").
1710+ requested_features: The names of the features in `feature_data`. This should be ordered in the same way as the
1711+ data in `feature_data`.
1712+ table: The FeatureView that `feature_data` was retrieved from.
17131713 """
17141714 # Add the feature names to the response.
17151715 requested_feature_refs = [
@@ -1973,7 +1973,7 @@ def _group_feature_refs(
19731973 List [Tuple [RequestFeatureView , List [str ]]],
19741974 Set [str ],
19751975]:
1976- """ Get list of feature views and corresponding feature names based on feature references"""
1976+ """Get list of feature views and corresponding feature names based on feature references"""
19771977
19781978 # view name to view proto
19791979 view_index = {view .projection .name_to_use (): view for view in all_feature_views }
@@ -2046,7 +2046,7 @@ def _print_materialization_log(
20462046
20472047
20482048def _validate_feature_views (feature_views : List [BaseFeatureView ]):
2049- """ Verify feature views have case-insensitively unique names"""
2049+ """Verify feature views have case-insensitively unique names"""
20502050 fv_names = set ()
20512051 for fv in feature_views :
20522052 case_insensitive_fv_name = fv .name .lower ()
@@ -2061,7 +2061,7 @@ def _validate_feature_views(feature_views: List[BaseFeatureView]):
20612061
20622062
20632063def _validate_data_sources (data_sources : List [DataSource ]):
2064- """ Verify data sources have case-insensitively unique names"""
2064+ """Verify data sources have case-insensitively unique names"""
20652065 ds_names = set ()
20662066 for fv in data_sources :
20672067 case_insensitive_ds_name = fv .name .lower ()
0 commit comments