Make default-sql work with service principal

This commit is contained in:
Denis Bilenko 2025-01-28 15:28:14 +01:00
parent 8ad39c9ab3
commit b3b68b9b74
3 changed files with 13 additions and 5 deletions

View File

@ -42,7 +42,7 @@ targets:
catalog: main
schema: default
permissions:
- user_name: $USERNAME
- user_name_OR_service_principal_name: $USERNAME
level: CAN_MANAGE
run_as:
user_name: $USERNAME

View File

@ -10,10 +10,6 @@ resources:
interval: 1
unit: DAYS
email_notifications:
on_failure:
- $USERNAME
parameters:
- name: catalog
default: ${var.catalog}

View File

@ -0,0 +1,12 @@
[[Repls]]
Old = '- (user_name|service_principal_name): \$USERNAME'
New = '- user_name_OR_service_principal_name: $$USERNAME'
[[Repls]]
Old = '''
email_notifications:
on_failure:
- \$USERNAME
'''
New = ''