You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
str(to_type) will return DATABASE ROLE but the query in Snowflake uses DATABASE_ROLE in the result. to uses the full FQN including the database name of the database role. Snowflake uses just the name of the database role.
The text was updated successfully, but these errors were encountered:
I ended up updating my code to the following so I can proceed with my project.
Additional issue: grantee_name != value
Upon inspection, snowflake's role table only returns the database role name and does not include the database qualifier.
While reviewing fetch_future_grants, I noticed the process is fetching future grants by the to value, so no reason to match by grantee_name again.
Something goes wrong fetching existing future grants to database roles. I've done a bit of debugging but failed to figure it out.
The problem starts here in
data_provider.py
in thefetch_future_grant
function:str(to_type)
will returnDATABASE ROLE
but the query in Snowflake usesDATABASE_ROLE
in the result.to
uses the full FQN including the database name of the database role. Snowflake uses just the name of the database role.The text was updated successfully, but these errors were encountered: