feathr-ai / feathr-ai/feathr

[BUG] `register_features` throws a "KeyError: 'guid' ..." error when the same name features are already registered.

Open
#750 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Scala
Stars
1.9k
Forks
247
PR merge metrics
No merged PRs in 30d

Description

### Willingness to contribute

No. I cannot contribute a bug fix at this time.

### Feathr version

0.8.0

### System information

- **OS Platform and Distribution (e.g., Linux Ubuntu 20.0)**: Ubuntu 20
- **Python version**: 3.10
- **Spark version, if reporting runtime issue**: 3.2.2

### Describe the problem

`client.register_features()` raises KeyError: 'guid' exception if the features are already registered.
Expected behavior is either overwrite (or accepts `overwrite=True` flag) or throw a more informative error, describing the feature names are already registered.

### Tracking information

_No response_

### Code to reproduce bug

_No response_

### What component(s) does this bug affect?

- [X] `Python Client`: This is the client users use to interact with most of our API. Mostly written in Python.
- [ ] `Computation Engine`: The computation engine that execute the actual feature join and generation work. Mostly in Scala and Spark.
- [X] `Feature Registry API`: The frontend API layer supports SQL, Purview(Atlas) as storage. The API layer is in Python(FAST API)
- [ ] `Feature Registry Web UI`: The Web UI for feature registry. Written in React

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.