{"id":31482514,"url":"https://github.com/snowflake-labs/openlineage-accesshistory-setup","last_synced_at":"2025-10-02T07:52:37.596Z","repository":{"id":37073431,"uuid":"450298286","full_name":"Snowflake-Labs/OpenLineage-AccessHistory-Setup","owner":"Snowflake-Labs","description":"Guideline to extract table lineage info in OpenLineage format from access history view ","archived":false,"fork":false,"pushed_at":"2023-05-11T08:01:14.000Z","size":946,"stargazers_count":10,"open_issues_count":7,"forks_count":5,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-05-01T13:33:10.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snowflake-Labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-21T00:09:43.000Z","updated_at":"2024-04-24T04:27:16.000Z","dependencies_parsed_at":"2022-09-15T04:41:47.092Z","dependency_job_id":null,"html_url":"https://github.com/Snowflake-Labs/OpenLineage-AccessHistory-Setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Snowflake-Labs/OpenLineage-AccessHistory-Setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FOpenLineage-AccessHistory-Setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FOpenLineage-AccessHistory-Setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FOpenLineage-AccessHistory-Setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FOpenLineage-AccessHistory-Setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snowflake-Labs","download_url":"https://codeload.github.com/Snowflake-Labs/OpenLineage-AccessHistory-Setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snowflake-Labs%2FOpenLineage-AccessHistory-Setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277974430,"owners_count":25908396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-02T07:52:32.099Z","updated_at":"2025-10-02T07:52:37.592Z","avatar_url":"https://github.com/Snowflake-Labs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#  OpenLineage Adapter\n\n##  Overview\nGuideline to extract lineage info in [OpenLineage](https://github.com/OpenLineage/OpenLineage) format from Snowflake [ACCESS_HISTORY](https://docs.snowflake.com/en/sql-reference/account-usage/access_history.html) view. \n\n##  Code Deployment\n\n### OPENLINEAGE_ACCESS_HISTORY View\n\n#### View Defintion\n\n[open_lineage_access_history.sql](https://github.com/Snowflake-Labs/OpenLineage-AccessHistory-Setup/blob/main/open_lineage_access_history.sql) is the script to create the view from [ACCESS_HISTORY](https://docs.snowflake.com/en/sql-reference/account-usage/access_history.html) and [QUERY_HISTORY](https://docs.snowflake.com/en/sql-reference/account-usage/query_history.html)\nthat outputs each query that accesses tables in the account in OpenLineage [JsonSchema](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) specification. \n\n* The view only shows a query that has non-empty value for `query_tag` column in the [query_history](https://docs.snowflake.com/en/sql-reference/account-usage/query_history.html).\n* The `namespace` of each record is in the format of `snowflake://\u003cOrganization_name\u003e-\u003cAccount_name\u003e`\n\n#### Prerequisite\nSet your account's organization name to the session variable `current_organization` before creating the view and running each query on the view. \n\n###### Example\n`set current_organization='my_org';`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowflake-labs%2Fopenlineage-accesshistory-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowflake-labs%2Fopenlineage-accesshistory-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowflake-labs%2Fopenlineage-accesshistory-setup/lists"}