Cortex Analyst (beta)
1. Permissions
-- Create a new role
CREATE ROLE <role_name>;
-- Grant the new role to the Select Star user
GRANT ROLE <role_name> TO USER <select_star_user>;
-- Grant usage on the database and schema where semantic views will be created
GRANT USAGE ON DATABASE <db_name> TO ROLE <role_name>;
GRANT USAGE ON SCHEMA <schema_name> TO ROLE <role_name>;
-- Grant the privilege to create semantic views in that schema
GRANT CREATE SEMANTIC VIEW ON SCHEMA <db_name>.<schema_name> TO ROLE <role_name>;
-- Grant select privileges on the underlying tables/views the semantic view will use
GRANT SELECT ON TABLE MY_DB.MY_SCHEMA.TABLE_A TO ROLE <role_name>;
GRANT SELECT ON TABLE MY_DB.MY_SCHEMA.TABLE_B TO ROLE <role_name>;2. Enable Cortex Analyst in Select Star

3. Generate Semantic Views


4. Leverage Semantic Views in Your Chatbot

Last updated
Was this helpful?
