Snowflake private key fix (#4031)

* snowflake-private-key-fixed

* ran-core_bump_version_dev
This commit is contained in:
codingwithabhi 2022-04-11 19:27:50 +05:30 committed by GitHub
parent fc92656502
commit 01336853ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -7,5 +7,5 @@ Provides metadata version information.
from incremental import Version
__version__ = Version("metadata", 0, 9, 0, dev=20)
__version__ = Version("metadata", 0, 9, 0, dev=21)
__all__ = ["__version__"]

View File

@ -10,7 +10,10 @@
"password": "password",
"database": "database_name",
"warehouse": "warehouse_name",
"account": "account.region_name.cloud_service"
"account": "account.region_name.cloud_service",
"connectionArguments": {
"private_key": "private_key"
}
}
},
"sourceConfig": {

View File

@ -62,9 +62,9 @@ class SnowflakeSource(SQLSource):
format=serialization.PrivateFormat.PKCS8,
encryption_algorithm=serialization.NoEncryption(),
)
config.serviceConnection.__root__.config.connectionArguments.private_key = (
pkb
)
config.serviceConnection.__root__.config.connectionArguments.private_key = (
pkb
)
super().__init__(config, metadata_config)