Skip to main content

consumer_personalization_requests

Operations on a consumer_personalization_requests resource.

Overview

Nameconsumer_personalization_requests
TypeResource
Iddatabricks_workspace.marketplace.consumer_personalization_requests

Fields

NameDatatype
idstring
commentstring
consumer_regionobject
contact_infoobject
created_atinteger
intended_usestring
is_from_lighthouseboolean
listing_idstring
listing_namestring
metastore_idstring
provider_idstring
recipient_typestring
shareobject
statusstring
status_messagestring
updated_atinteger

Methods

NameAccessible byRequired ParamsDescription
getSELECTlisting_id, deployment_nameGet the personalization request for a listing. Each consumer can make at
listSELECTdeployment_nameList personalization requests for a consumer across all listings.
createINSERTlisting_id, deployment_nameCreate a personalization request for a listing.

SELECT examples

SELECT
id,
comment,
consumer_region,
contact_info,
created_at,
intended_use,
is_from_lighthouse,
listing_id,
listing_name,
metastore_id,
provider_id,
recipient_type,
share,
status,
status_message,
updated_at
FROM databricks_workspace.marketplace.consumer_personalization_requests
WHERE deployment_name = '{{ deployment_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new consumer_personalization_requests resource.

/*+ create */
INSERT INTO databricks_workspace.marketplace.consumer_personalization_requests (
listing_id,
deployment_name,
data__comment,
data__intended_use,
data__first_name,
data__last_name,
data__company,
data__is_from_lighthouse,
data__recipient_type,
data__accepted_consumer_terms
)
SELECT
'{{ listing_id }}',
'{{ deployment_name }}',
'{{ comment }}',
'{{ intended_use }}',
'{{ first_name }}',
'{{ last_name }}',
'{{ company }}',
'{{ is_from_lighthouse }}',
'{{ recipient_type }}',
'{{ accepted_consumer_terms }}'
;