sdk/python/feast/infra/provider.py
def _get_column_names(
    feature_view: FeatureView, entities: List[Entity]
) -> Tuple[List[str], List[str], str, Optional[str]]:
    """
    If a field mapping exists, run it in reverse on the join keys,
    feature names, event timestamp column, and created timestamp column
    to get the names of the relevant columns in the offline feature store table.

    Returns:
        Tuple containing the list of reverse-mapped join_keys,
        reverse-mapped feature names, reverse-mapped event timestamp column,
        and reverse-mapped created timestamp column that will be passed into
        the query to the offline store.
    """
    # if we have mapped fields, use the original field names in the call to the offline store
    event_timestamp_column = feature_view.batch_source.event_timestamp_column
    feature_names = [feature.name for feature in feature_view.features]
    created_timestamp_column = feature_view.batch_source.created_timestamp_column
    join_keys = [entity.join_key for entity in entities]
    if feature_view.batch_source.field_mapping is not None:
        reverse_field_mapping = {
            v: k for k, v in feature_view.batch_source.field_mapping.items()
        }
        event_timestamp_column = (
            reverse_field_mapping[event_timestamp_column]
            if event_timestamp_column in reverse_field_mapping.keys()
            else event_timestamp_column
        )
        created_timestamp_column = (
            reverse_field_mapping[created_timestamp_column]
            if created_timestamp_column
            and created_timestamp_column in reverse_field_mapping.keys()
            else created_timestamp_column
        )
        join_keys = [
            reverse_field_mapping[col] if col in reverse_field_mapping.keys() else col
            for col in join_keys
        ]
        feature_names = [
            reverse_field_mapping[col] if col in reverse_field_mapping.keys() else col
            for col in feature_names
        ]
    return (
        join_keys,
        feature_names,
        event_timestamp_column,
        created_timestamp_column,
    )

    If a field mapping exists, run it in reverse on the join keys,
    feature names, event timestamp column, and created timestamp column
    to get the names of the relevant columns in the offline feature store table.

    Returns:
        Tuple containing the list of reverse-mapped join_keys,
        reverse-mapped feature names, reverse-mapped event timestamp column,
        and reverse-mapped created timestamp column that will be passed into
        the query to the offline store.
    
If a field mapping exists, run it in reverse on the join keys,
feature names, event timestamp column, and created timestamp column
to get the names of the relevant columns in the offline feature store table.
If a field mapping exists run it in reverse on the join keys feature names event timestamp column and created timestamp column to get the names of the relevant columns in the offline feature store table .
def _get_column_names(
    feature_view: FeatureView, entities: List[Entity]
) -> Tuple[List[str], List[str], str, Optional[str]]:
    event_timestamp_column = feature_view.batch_source.event_timestamp_column
    feature_names = [feature.name for feature in feature_view.features]
    created_timestamp_column = feature_view.batch_source.created_timestamp_column
    join_keys = [entity.join_key for entity in entities]
    if feature_view.batch_source.field_mapping is not None:
        reverse_field_mapping = {
            v: k for k, v in feature_view.batch_source.field_mapping.items()
        }
        event_timestamp_column = (
            reverse_field_mapping[event_timestamp_column]
            if event_timestamp_column in reverse_field_mapping.keys()
            else event_timestamp_column
        )
        created_timestamp_column = (
            reverse_field_mapping[created_timestamp_column]
            if created_timestamp_column
            and created_timestamp_column in reverse_field_mapping.keys()
            else created_timestamp_column
        )
        join_keys = [
            reverse_field_mapping[col] if col in reverse_field_mapping.keys() else col
            for col in join_keys
        ]
        feature_names = [
            reverse_field_mapping[col] if col in reverse_field_mapping.keys() else col
            for col in feature_names
        ]
    return (
        join_keys,
        feature_names,
        event_timestamp_column,
        created_timestamp_column,
    )
def _get_column_names ( feature_view : FeatureView , entities : List [ Entity ] ) -> Tuple [ List [ str ] , List [ str ] , str , Optional [ str ] ] : event_timestamp_column = feature_view . batch_source . event_timestamp_column feature_names = [ feature . name for feature in feature_view . features ] created_timestamp_column = feature_view . batch_source . created_timestamp_column join_keys = [ entity . join_key for entity in entities ] if feature_view . batch_source . field_mapping is not None : reverse_field_mapping = { v : k for k , v in feature_view . batch_source . field_mapping . items ( ) } event_timestamp_column = ( reverse_field_mapping [ event_timestamp_column ] if event_timestamp_column in reverse_field_mapping . keys ( ) else event_timestamp_column ) created_timestamp_column = ( reverse_field_mapping [ created_timestamp_column ] if created_timestamp_column and created_timestamp_column in reverse_field_mapping . keys ( ) else created_timestamp_column ) join_keys = [ reverse_field_mapping [ col ] if col in reverse_field_mapping . keys ( ) else col for col in join_keys ] feature_names = [ reverse_field_mapping [ col ] if col in reverse_field_mapping . keys ( ) else col for col in feature_names ] return ( join_keys , feature_names , event_timestamp_column , created_timestamp_column , )
If a field mapping exists, run it in reverse on the join keys,
feature names, event timestamp column, and created timestamp column
to get the names of the relevant columns in the offline feature store table.
If a field mapping exists run it in reverse on the join keys feature names event timestamp column and created timestamp column to get the names of the relevant columns in the offline feature store table .
"""
    If a field mapping exists, run it in reverse on the join keys,
    feature names, event timestamp column, and created timestamp column
    to get the names of the relevant columns in the offline feature store table.

    Returns:
        Tuple containing the list of reverse-mapped join_keys,
        reverse-mapped feature names, reverse-mapped event timestamp column,
        and reverse-mapped created timestamp column that will be passed into
        the query to the offline store.
    """ # if we have mapped fields, use the original field names in the call to the offline store
Tuple containing the list of reverse-mapped join_keys,
reverse-mapped feature names, reverse-mapped event timestamp column,
and reverse-mapped created timestamp column that will be passed into
the query to the offline store.
Tuple containing the list of reverse - mapped join_keys reverse - mapped feature names reverse - mapped event timestamp column and reverse - mapped created timestamp column that will be passed into the query to the offline store .
feature_view
FeatureView
entities
List[Entity]