数据共享使用情况

在 SNOWFLAKE 数据库中,DATA_SHARING_USAGE 架构包含一些视图,它们显示有关在 Snowflake Marketplace 或数据交换中发布的列表的信息。这些信息包括遥测数据(点击次数)以及使用数据(使用者运行的查询)。

Note

This data is available only to the account that published the individual listing. By default, only account administrators (users with the ACCOUNTADMIN role) in the account can access the SNOWFLAKE database and schemas within the database, or perform queries on the views; however, privileges on the database can be granted to other roles in your account to allow other users to access the objects. For more details, see Enabling other roles to use schemas in the SNOWFLAKE database.

DATA_SHARING_USAGE 视图

DATA_SHARING_USAGE 架构包含以下视图:

视图类型Latency [1]保留期限视图受众
APPLICATION_STATE当前状态长达 10 分钟不适用。提供商
LISTING_ACCESS_HISTORY历史数据长达 2 天数据保留 1 年。提供商
LISTING_AUTO_FULFILLMENT_DATABASE_STORAGE_DAILY历史数据长达 2 天数据保留 1 年。提供商
LISTING_AUTO_FULFILLMENT_REFRESH_DAILY历史数据长达 2 天数据保留 1 年。提供商
LISTING_CONSUMPTION_DAILY历史数据长达 2 天数据保留 1 年。提供商
LISTING_EVENTS_DAILY历史数据长达 2 天数据保留 1 年。提供商
LISTING_TELEMETRY_DAILY历史数据长达 2 天数据保留 1 年。提供商
MARKETPLACE_DISBURSEMENT_REPORT历史数据长达 2 天数据保留 1 年。提供商
MARKETPLACE_LISTING_INVOICE_STATUS历史数据长达 2 天数据保留 1 年。提供商
MARKETPLACE_PAID_USAGE_DAILY历史数据长达 2 天数据保留 1 年。使用者
MARKETPLACE_PROVIDER_SPCS_USAGE历史数据长达 2 天数据保留 1 年。提供商
MONETIZED_USAGE_DAILY历史数据长达 2 天数据保留 1 年。提供商
PAID_LISTING_ACCESS_AND_CHANGE_LOG历史数据长达 2 天数据保留 1 年。提供商

[1] All latency times are approximate; in some instances, the actual latency may be lower.

一般使用说明

The Snowflake-specific views are subject to change. Avoid selecting all columns from these views. Instead, select the columns that you want. For example, if you want the name column, use SELECT name, rather than SELECT *.