Method
exportFeatureGroupVersionToDatabaseConnector POST
Copy POST

Export Feature group to Database Connector.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes featureGroupVersion str Unique string identifier for the Feature Group instance to export.
Yes databaseConnectorId str Unique string identifier for the Database Connector to export to.
Yes objectName str Name of the database object to write to.
Yes writeMode str Enum string indicating whether to use INSERT or UPSERT.
Yes databaseFeatureMapping dict Key/value pair JSON object of "database connector column" -> "feature name" pairs.
No idColumn str Required if write_mode is UPSERT. Indicates which database column should be used as the lookup key.
No additionalIdColumns list For database connectors which support it, additional ID columns to use as a complex key for upserting.
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 FeatureGroupExport
KEY TYPE Description
featureGroupExportId str Unique identifier for this export.
failedWrites int Number of failed writes.
totalWrites int Total number of writes.
featureGroupVersion str Version of the feature group being exported.
connectorType str The type of connector
outputLocation str File Connector location the feature group is being written to.
fileFormat str File format being written to `output_location`.
databaseConnectorId str Database connector ID used.
objectName str Database connector's object to write to.
writeMode str `UPSERT` or `INSERT` for writing to the database connector.
databaseFeatureMapping dict Column/feature pairs mapping the features to the database columns.
idColumn str ID column to use as the upsert key.
status str Current status of the export.
createdAt str Timestamp at which the export was created (ISO-8601 format).
exportCompletedAt str Timestamp at which the export completed (ISO-8601 format).
additionalIdColumns List[str] For database connectors which support it, additional ID columns to use as a complex key for upserting.
error str If `status` is `FAILED`, this field will be populated with an error.
databaseOutputError bool If `True`, there were errors reported by the database connector while writing.
projectConfig ProjectConfig Project config for this feature group.
KEY TYPE Description
type str Type of project config
config ProjectFeatureGroupConfig Project-specific config for this feature group
KEY TYPE Description
type None None

Exceptions:

TYPE WHEN
DataNotFoundError

databaseConnectorId is not found.

DataNotFoundError

additionalIdColumns is not found.

InvalidEnumParameterError

An invalid value is passed for writeMode.

Language: