Skip to content

Commit

Permalink
Fix typo (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aalam authored Jan 19, 2024
1 parent 53dbb92 commit 9a3e5ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/snowflake/snowpark/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1624,13 +1624,13 @@ def _get_remote_query_tag(self) -> None:
)
return remote_tag_rows[0].value

def append_query_tag(self, tag: str, seperator: str = ",") -> 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.
Args:
tag: The tag to append to the current query tag.
seperator: The string used to separate values in the query tag.
separator: The string used to separate values in the query tag.
Note:
Assigning a value via session.query_tag will remove any appended query tags.
Expand All @@ -1651,7 +1651,7 @@ def append_query_tag(self, tag: str, seperator: str = ",") -> None:
Example::
>>> session.query_tag = "tag1"
>>> session.append_query_tag("tag2", seperator="|")
>>> session.append_query_tag("tag2", separator="|")
>>> print(session.query_tag)
tag1|tag2
Expand All @@ -1664,7 +1664,7 @@ def append_query_tag(self, tag: str, seperator: str = ",") -> None:
"""
if tag:
remote_tag = self._get_remote_query_tag()
new_tag = seperator.join(t for t in [remote_tag, tag] if t)
new_tag = separator.join(t for t in [remote_tag, tag] if t)
self.query_tag = new_tag

def update_query_tag(self, tag: dict) -> None:
Expand Down

0 comments on commit 9a3e5ca

Please sign in to comment.