mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-09 23:40:05 +00:00
Snowflake Make Query tag Optional (#6114)
* Snowflake make query tag optional * Modified Description
This commit is contained in:
parent
7b6332edef
commit
da559150c1
@ -65,9 +65,8 @@
|
|||||||
},
|
},
|
||||||
"queryTag": {
|
"queryTag": {
|
||||||
"title": "Query Tag",
|
"title": "Query Tag",
|
||||||
"description": "Session query tag used to monitor usage on snoflake",
|
"description": "Session query tag used to monitor usage on snoflake. To use a query tag snowflake user should have enough privileges to alter the session.",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"default": "OpenMetadata"
|
|
||||||
},
|
},
|
||||||
"privateKey": {
|
"privateKey": {
|
||||||
"title": "Private Key",
|
"title": "Private Key",
|
||||||
|
|||||||
@ -135,6 +135,7 @@ class SnowflakeSource(CommonDbSourceService):
|
|||||||
"""
|
"""
|
||||||
Method to set query tag for current session
|
Method to set query tag for current session
|
||||||
"""
|
"""
|
||||||
|
if self.service_connection.queryTag:
|
||||||
self.engine.execute(
|
self.engine.execute(
|
||||||
SNOWFLAKE_SESSION_TAG_QUERY.format(
|
SNOWFLAKE_SESSION_TAG_QUERY.format(
|
||||||
query_tag=self.service_connection.queryTag
|
query_tag=self.service_connection.queryTag
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user