Skip to content

featurebyte.FeatureList.save

save(
conflict_resolution: Literal["raise", "retrieve"]="raise"
)

Description

Adds a FeatureList object to the catalog. A conflict could be triggered when the object being saved has violated a uniqueness check at the catalog. If uniqueness is violated, you can either raise an error or retrieve the object with the same name, depending on the conflict resolution parameter passed in. The default behavior is to raise an error.

Parameters

  • conflict_resolution: Literal["raise", "retrieve"]
    default: "raise"
    "raise" raises error when we encounter a conflict error (default).
    "retrieve" handle conflict error by retrieving the object with the same name.

Raises

  • DuplicatedRecordException
    When a record with the same key exists at the persistent data store.