Skip to content

Commit

Permalink
change set app_name with append_query_tag to keep any pre-existing qu…
Browse files Browse the repository at this point in the history
…ery_tag.
  • Loading branch information
sfc-gh-kjimenezmorales committed Feb 5, 2024
1 parent f855e72 commit f43dbde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snowflake/snowpark/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def create(self) -> "Session":

if self._app_name:
app_name_tag = f"APPNAME={self._app_name}"
session.query_tag = app_name_tag
session.append_query_tag(app_name_tag)

return session

Expand Down Expand Up @@ -1640,7 +1640,7 @@ def _get_remote_query_tag(self) -> None:

def append_query_tag(self, tag: str, separator: str = ",") -> None:
"""
Appends a tag to the current query tag. The input tag is appended to the current sessions query tag with the given sperator.
Appends a tag to the current query tag. The input tag is appended to the current sessions query tag with the given separator.
Args:
tag: The tag to append to the current query tag.
Expand Down

0 comments on commit f43dbde

Please sign in to comment.