Method
previewFeatureGroupTemplateResolution POST
Copy POST

Resolve template sql using template variables and template bindings.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
No featureGroupTemplateId str Unique string identifier. If specified, use this template, otherwise assume an empty template.
No templateBindings List[dict] Values to override the template variable values specified by the template.
No templateSql str If specified, use this as the template SQL instead of the feature group template's SQL.
No templateVariables List[dict] Template variables to use. If a template is provided, this overrides the template's template variables.
No shouldValidate bool If true, validates the resolved SQL.
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 ResolvedFeatureGroupTemplate
KEY TYPE Description
featureGroupTemplateId str Unique identifier for this feature group template.
resolvedVariables dict Map from template variable names to parameters available during template resolution.
resolvedSql str SQL resulting from resolving the SQL template by applying the resolved bindings.
templateSql str SQL that can include variables to be replaced by values from the template config to resolve this template SQL into a valid SQL query for a feature group.
sqlError str if invalid, the sql error message

Exceptions:

TYPE WHEN
DataNotFoundError

featureGroupTemplateId is not found.

Language: