Schema:

DATA_SHARING_USAGE

LISTING_EVENTS_DAILY View

The LISTING_EVENTS_DAILY view in the DATA_SHARING_USAGE schema enables you to retrieve the history of completed requests or get events for the data exchange. A request event indicates that a consumer has successfully submitted a request for a listing. A get event indicates that a consumer has successfully created a database from the data associated with a listing.

Columns

Column Name

Data Type

Description

EVENT_DATE

DATETIME

Date of the event.

EXCHANGE_NAME

VARCHAR

Name of the data exchange the listing belongs to.

EVENT_TYPE

VARCHAR

Get or Request.

SNOWFLAKE_REGION

VARCHAR

Snowflake region where the request or get occurred.

LISTING_NAME

VARCHAR

SQL identifier for the listing.

LISTING_DISPLAY_NAME

VARCHAR

Display name of the listing.

LISTING_GLOBAL_NAME

VARCHAR

Listing global name.

CONSUME4R_ACCOUNT_LOCATOR

varchar

Consumer's account locator name.

CONSUMER_ACCOUNT_NAME

VARCHAR

Consumer's account name.

CONSUMER_ORGANIZATION

VARCHAR

Consumer's organization name.

CONSUMER_EMAIL

VARCHAR

Consumer's email (if available).

TERMS_ACCEPTED_DATE

DATETIME

Timestamp when the consumer accepted listing terms.

Usage Notes

  • Latency for the view may be up to 2 days.

  • The data is retained for 365 days (1 year).

Examples

Shows daily count of gets and requests by listing:

SELECT
  listing_name,
  listing_display_name,
  event_date,
  event_type,
  SUM(1) AS count_gets_requets
FROM snowflake.data_sharing_usage.listing_events_daily
GROUP BY 1,2,3,4