Skip to content

Commit

Permalink
resolving PEP 8 warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Dharmisha Doshi <[email protected]>
  • Loading branch information
[email protected] authored and dharmisha committed Jan 15, 2025
1 parent 3fa7a10 commit e947c72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sdk/python/feast/infra/offline_stores/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,10 +898,14 @@ def arrow_schema_to_bq_schema(arrow_schema: pyarrow.Schema) -> List[SchemaField]
{{ featureview.name }}__subquery AS (
SELECT
{{ featureview.timestamp_field }} as event_timestamp,
{{ featureview.created_timestamp_column ~ ' as created_timestamp,' if featureview.created_timestamp_column else '' }}
{{ featureview.created_timestamp_column ~ ' as created_timestamp,' if featureview.created_timestamp_column
else '' }}
{{ featureview.entity_selections | join(', ')}}{% if featureview.entity_selections %},{% else %}{% endif %}
{% for feature in featureview.features %}
{{ feature | backticks }} as {% if full_feature_names %}{{ featureview.name }}__{{featureview.field_mapping.get(feature, feature)}}{% else %}{{ featureview.field_mapping.get(feature, feature) | backticks }}{% endif %}{% if loop.last %}{% else %}, {% endif %}
{{ feature | backticks }} as {% if full_feature_names %}
{{ featureview.name }}__{{featureview.field_mapping.get(feature, feature)}}{% else %}
{{ featureview.field_mapping.get(feature, feature) | backticks }}{% endif %}
{% if loop.last %}{% else %}, {% endif %}
{% endfor %}
FROM {{ featureview.table_subquery }}
WHERE {{ featureview.timestamp_field }} <= '{{ featureview.max_event_timestamp }}'
Expand Down

0 comments on commit e947c72

Please sign in to comment.