Skip to content

feat: Add feature view versioning support to Bigtable online store - #7013

Open
PragalvaXFREZ wants to merge 1 commit into
feast-dev:masterfrom
PragalvaXFREZ:feat/bigtable-online-store-versioning
Open

PragalvaXFREZ wants to merge 1 commit into
feast-dev:masterfrom
PragalvaXFREZ:feat/bigtable-online-store-versioning

Conversation

@PragalvaXFREZ

Copy link
Copy Markdown

What this PR does / why we need it:

Adds feature view versioning support to BigtableOnlineStore when registry.enable_online_feature_view_versioning is enabled.

Bigtable rows are keyed as {entity_id}#{feature_view_name} inside a table shared by all feature views with the same entities. This change uses compute_versioned_name for the feature view part of the row key in online_write_batch and online_read, so each version is stored under its own row key ({entity_id}#{fv_name}_v{N}). Unversioned keys stay the same. Table and column-family management in update/teardown works per entity table, so those methods are unchanged.

It also registers BigtableOnlineStore in OnlineStore._is_versioned_read_supported().

Which issue(s) this PR fixes:

Fixes #6165

Checks

  • I have made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests (sdk/python/tests/unit/infra/online_store/test_bigtable_online_versioning.py: the row-key write/read tests fail on master and pass with this change; all 15 pass)
  • Integration tests
  • Manual tests

Misc

test_bigtable_online_store.py::test_online_write_batch_respects_mutations_per_write also fails on unmodified master: concurrent batch ordering gives [5, 2, 5] instead of [5, 5, 2]. This change does not cause it.

Signed-off-by: Pragalva Sapkota <sapkotapragalva@gmail.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add feature view versioning support to Bigtable online store

1 participant