Skip to content

Commit

Permalink
Revert "fix: Optimize bytes processed when retrieving entity df schem…
Browse files Browse the repository at this point in the history
…a to 0 (feast-dev#3680)"

This reverts commit ddc9e4c.
  • Loading branch information
EXPEbdodla authored Jun 11, 2024
1 parent 90d768a commit 874e433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/offline_stores/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def _get_entity_schema(
) -> Dict[str, np.dtype]:
if isinstance(entity_df, str):
entity_df_sample = (
client.query(f"SELECT * FROM ({entity_df}) LIMIT 0").result().to_dataframe()
client.query(f"SELECT * FROM ({entity_df}) LIMIT 1").result().to_dataframe()
)

entity_schema = dict(zip(entity_df_sample.columns, entity_df_sample.dtypes))
Expand Down

0 comments on commit 874e433

Please sign in to comment.