sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

Snowflake Secure View Support

Open isaiahgm opened this issue 1 year ago • 1 comments

Secure views are feature in Snowflake that allows engineers to obfuscate the view query code and must be used when sharing views across Snowflake Account using Snowflake Data Sharing.

Because SQL Mesh only surfaces data for end users as views, we are unable to share data created by SQL Mesh with other Snowflake Accounts, which limits SQL Mesh's potential use cases.

I propose adding this functionality either as another option in the model configuration or as a key pair in the virtual properties config option.

isaiahgm avatar Aug 29 '24 21:08 isaiahgm

Hello! +1 for this feature, but there is a slightly messy work around... https://docs.snowflake.com/en/user-guide/data-sharing-views

Secure views as an option will e gratefully received here too!

BenKentzer avatar Sep 11 '24 15:09 BenKentzer

This isn't yet in the latest release but it was merged https://github.com/TobikoData/sqlmesh/pull/3253

benfdking avatar Oct 23 '24 15:10 benfdking

This was released in the latest version and is documented below.

https://sqlmesh.readthedocs.io/en/stable/integrations/engines/snowflake/#secure-views

benfdking avatar Oct 31 '24 08:10 benfdking