question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`feast apply` broken with 0.15.* if the registry already exists

See original GitHub issue

Expected Behavior

Running feast apply twice in a row should work as expected

Current Behavior

The second time we run feast apply, it will break with feast v0.15.*

Steps to reproduce

  • install Feast 0.15.1
  • Add a local config
project: local
registry: tmp/registry.db
provider: local
offline_store:
    type: bigquery
    dataset: scratch
online_store:
    type: sqlite
    path: tmp/database.db
  • feast apply ✅ if the registry does not exist
  • feast apply 🔴 image From Slack

And interestingly, it does not always fail on the same FeatureView being applied And I can successfully print feature_view_proto.spec.entities right before it fails

Specifications

  • Version:
  • Platform:
  • Subsystem:

Possible Solution

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
felixwang9817commented, Nov 25, 2021

hey @MattDelac, this issue looks like it might be related to #2038 and #2063

maybe try pip installing tensorflow-metadata and trying again?

0reactions
MattDelaccommented, Dec 2, 2021

So the problem is that I create a child class from the Feast FeatureView class. I do so in order to add Shopify specifics.

Since feast==0.15.0, the cls argument passed to the classmethod from_proto() was the child class instead of the parent class. Thus, the from_proto() method was broken when it was trying to create a new FeatureView object.

The solution is to override this method class and explicitly return the one coming from the parent class (see code below)

from feast.feature_view import FeatureView as FeastFeatureView

class FeatureView(FeastFeatureView):
    def __init__(
        self,
        name: str,
        entity: str,
        owner: str,
        features: List[Feature],
        batch_source: CustomSource,
        ttl: Optional[timedelta] = None,
    ):
        super().__init__(
            name=name,
            entities=[entity],
            features=features,
            batch_source=batch_source,
            ttl=ttl,
            tags={...}
        )

    @classmethod
    def from_proto(self, feature_view_proto):
        return FeastFeatureView.from_proto(feature_view_proto)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog - GitHub
... `feast apply` broken with 0.15.\* if the registry already exists ... dataset if it already exists [\#1569](https://github.com/feast-dev/feast/pull/1569) ...
Read more >
feast-dev/feast v0.16.0 on GitHub - NewReleases.io
Fixed bugs: requested_features are not passed to online_read() from passthrough_provider #2106; feast apply broken with 0.15.* if the registry already exists ...
Read more >
CRFM Benchmarking
A better use of resources would have been to support refugee camps in the region ... But it's still a road usage tax...
Read more >
nature | The Woodlands Township Environmental Services
Monarchs in the United States are split into two populations, one east of the ... Monarch caterpillars feast night and day on the...
Read more >
Admin - Web Reports - Site Usage - Academy of the Holy Angels
Page Hits % Overall Traffic Home 2234542 16.64% Admissions_Login 732714 5.46% BBNC Error Page 449616 3.35%
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found