Pages

30 May, 2024

Snowflake: How to flatten the ACCESS_HISTORY View

in snowlake.account_usage.access_history DIRECT_OBJECTS_ACCESSED and BASE_OBJECTS_ACCESSED contains the objects that were involved in the query


Although it’s great to have these information, the format however prohibits us from joining this data with another object data to gain more insight about how the objects was used by the query (e.g. which warehouse this query was executed? How long did it take to execute? Was there an error encountered? Who executed it? etc.)


is there a way to flatten it ?


flatten the access_history view

No comments:

Post a Comment

Thanks