Method
createFeatureGroupTemplate POST
Copy POST

Create a feature group template.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes featureGroupId str Unique identifier of the feature group this template was created from.
Yes name str User-friendly name for this feature group template.
Yes templateSql str The template SQL that will be resolved by applying values from the template variables to generate SQL for a feature group.
Yes templateVariables dict The template variables for resolving the template.
No description str Description of this feature group template.
No templateBindings dict If the feature group will be attached to the newly created template, set these variable bindings on that feature group.
No shouldAttachFeatureGroupToTemplate bool Set to `True` to convert the feature group to a template feature group and attach it to the newly created template.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
result FeatureGroupTemplate
KEY TYPE Description
featureGroupTemplateId str The unique identifier for this feature group template.
description str A user-friendly text description of this feature group template.
featureGroupId str The unique identifier for the feature group used to create this template.
isSystemTemplate bool True if this is a system template returned from a user organization.
name str The user-friendly name of this feature group template.
templateSql str SQL that can include variables which will be replaced by values from the template config to resolve this template SQL into a valid SQL query for a feature group.
templateVariables dict A map, from template variable names to parameters for replacing those template variables with values (e.g. to values and metadata on how to resolve those values).
createdAt str When the feature group template was created.
updatedAt str When the feature group template was updated.

Exceptions:

TYPE WHEN
DataNotFoundError

featureGroupId is not found.

Language: