Skip to main content

feature_groups

Creates, updates, deletes, gets or lists a feature_groups resource.

Overview

Namefeature_groups
TypeResource
Idgoogle.aiplatform.feature_groups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of the FeatureGroup. Format: projects/{project}/locations/{location}/featureGroups/{featureGroup}
bigQueryobjectIndicates that features for this group come from BigQuery Table/View. By default treats the source as a sparse time series source. The BigQuery source table or view must have at least one entity ID column and a column named feature_timestamp. (id: GoogleCloudAiplatformV1FeatureGroupBigQuery)
createTimestring (google-datetime)Output only. Timestamp when this FeatureGroup was created.
descriptionstringOptional. Description of the FeatureGroup.
etagstringOptional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsobjectOptional. The labels with user-defined metadata to organize your FeatureGroup. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureGroup(System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
serviceAccountEmailstringOutput only. A Service Account unique to this FeatureGroup. The role bigquery.dataViewer should be granted to this service account to allow Vertex AI Feature Store to access source data while running jobs under this FeatureGroup.
serviceAgentTypestringOptional. Service agent type used during jobs under a FeatureGroup. By default, the Vertex AI Service Agent is used. When using an IAM Policy to isolate this FeatureGroup within a project, a separate service account should be provisioned by setting this field to SERVICE_AGENT_TYPE_FEATURE_GROUP. This will generate a separate service account to access the BigQuery source table.
updateTimestring (google-datetime)Output only. Timestamp when this FeatureGroup was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, featureGroupsIdGets details of a single FeatureGroup.
listselectprojectsId, locationsIdfilter, pageSize, pageToken, orderByLists FeatureGroups in a given project and location.
createinsertprojectsId, locationsIdfeatureGroupIdCreates a new FeatureGroup in a given project and location.
patchupdateprojectsId, locationsId, featureGroupsIdupdateMaskUpdates the parameters of a single FeatureGroup.
deletedeleteprojectsId, locationsId, featureGroupsIdforceDeletes a single FeatureGroup.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
featureGroupsIdstring
locationsIdstring
projectsIdstring
featureGroupIdstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single FeatureGroup.

SELECT
name,
bigQuery,
createTime,
description,
etag,
labels,
serviceAccountEmail,
serviceAgentType,
updateTime
FROM google.aiplatform.feature_groups
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND featureGroupsId = '{{ featureGroupsId }}' -- required;

INSERT examples

Creates a new FeatureGroup in a given project and location.

INSERT INTO google.aiplatform.feature_groups (
data__bigQuery,
data__name,
data__etag,
data__labels,
data__description,
data__serviceAgentType,
projectsId,
locationsId,
featureGroupId
)
SELECT
'{{ bigQuery }}',
'{{ name }}',
'{{ etag }}',
'{{ labels }}',
'{{ description }}',
'{{ serviceAgentType }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ featureGroupId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single FeatureGroup.

UPDATE google.aiplatform.feature_groups
SET
data__bigQuery = '{{ bigQuery }}',
data__name = '{{ name }}',
data__etag = '{{ etag }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__serviceAgentType = '{{ serviceAgentType }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND featureGroupsId = '{{ featureGroupsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single FeatureGroup.

DELETE FROM google.aiplatform.feature_groups
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND featureGroupsId = '{{ featureGroupsId }}' --required
AND force = '{{ force }}';