Describe the bug
We grant Iceberg Tables to outbound share, SnowDDL suggest first granting of Iceberg Tables and then immediately after revoking them:
GRANT SELECT ON ICEBERG TABLE <database>.<schema>.<iceberg_table> TO SHARE <share_name>;
REVOKE SELECT ON TABLE <database>.<schema>.<iceberg_table> FROM SHARE <share_name>;
Iceberg Tables already granted, but on every plan we see above suggested statements.
Expected behavior
Only grant is suggested if not already granted
GRANT SELECT ON ICEBERG TABLE <database>.<schema>.<iceberg_table> TO SHARE <share_name>;
Attach YAML config (if applicable)
<share_name>:
accounts:
- <account>
grants:
DATABASE:USAGE:
- <database>
SCHEMA:USAGE:
- <database>.<schema>
ICEBERG_TABLE:SELECT:
- <database>.<schema>.<iceberg_table>
Describe the bug
We grant Iceberg Tables to outbound share, SnowDDL suggest first granting of Iceberg Tables and then immediately after revoking them:
Iceberg Tables already granted, but on every plan we see above suggested statements.
Expected behavior
Only grant is suggested if not already granted
Attach YAML config (if applicable)