Skip to content

Commit 1c01035

Browse files
fix: Optimize bytes processed when retrieving entity df schema to 0 (#3680)
feat: Optimize bytes processed when retrieving entity df schema to 0 Signed-off-by: Hai Nguyen <quanghai.ng1512@gmail.com>
1 parent 478caec commit 1c01035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/infra/offline_stores/bigquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def _get_entity_schema(
693693
) -> Dict[str, np.dtype]:
694694
if isinstance(entity_df, str):
695695
entity_df_sample = (
696-
client.query(f"SELECT * FROM ({entity_df}) LIMIT 1").result().to_dataframe()
696+
client.query(f"SELECT * FROM ({entity_df}) LIMIT 0").result().to_dataframe()
697697
)
698698

699699
entity_schema = dict(zip(entity_df_sample.columns, entity_df_sample.dtypes))

0 commit comments

Comments
 (0)