Skip to content

removed entity tmp table deletion from bq as needed for executin sql …#44

Merged
alessandro-rizzo-ki merged 2 commits into
masterfrom
remove-table-delete-query-generator-context
Jun 13, 2025
Merged

removed entity tmp table deletion from bq as needed for executin sql …#44
alessandro-rizzo-ki merged 2 commits into
masterfrom
remove-table-delete-query-generator-context

Conversation

@alessandro-rizzo-ki

@alessandro-rizzo-ki alessandro-rizzo-ki commented Jun 9, 2025

Copy link
Copy Markdown

Removed bq table delete for temp tables which contain the entities requested for historical retrieval at https://github.com/Ki-Insurance/feast/blob/master/sdk/python/feast/infra/offline_stores/bigquery.py#L290

This is only a fallback as these temp tables are due to expire in 30m anyway as we can see here https://github.com/Ki-Insurance/feast/blob/master/sdk/python/feast/infra/offline_stores/bigquery.py#L711

We're trying to get the SQL query that feast uses to retrieve the historical features (PR at https://github.com/Ki-Insurance/feature-store-connector/pull/516) so that we can run it client-side in the feature store connector client.

Since the creation of this SQL query is wrapped in a context manager here https://github.com/Ki-Insurance/feast/blob/master/sdk/python/feast/infra/offline_stores/bigquery.py#L253 , when we execute the query client-side the table has been already removed.

This change removes the fallback (virtually no extra risk as they expire anyway and names are uuid unique) and allows us to use that temp table later on after the call to feast 'server' has completed.

There are some failing tests which have to do with registry validation, they seem unrelated and they currently fail on main. I'm tempted to merge anyway and fix at a later date.
image

@alessandro-rizzo-ki alessandro-rizzo-ki self-assigned this Jun 9, 2025
@alessandro-rizzo-ki alessandro-rizzo-ki requested a review from a team June 9, 2025 16:40
@alessandro-rizzo-ki alessandro-rizzo-ki added the enhancement New feature or request label Jun 13, 2025

@owen-oclee-ki owen-oclee-ki left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! is there any process we should follow to check they are indeed cleaned up automatically? or have we already verified this?

@alessandro-rizzo-ki

Copy link
Copy Markdown
Author

lgtm! is there any process we should follow to check they are indeed cleaned up automatically? or have we already verified this?

I'm going to do some tests from the client to double check this 👍

@alessandro-rizzo-ki alessandro-rizzo-ki merged commit 45e37e4 into master Jun 13, 2025
16 of 21 checks passed
@alessandro-rizzo-ki

Copy link
Copy Markdown
Author

Tested that the ephemeral table is created with an expiry date
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants