Skip to content

Commit

Permalink
Update appName function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dchaconbarrantes committed Feb 21, 2024
1 parent 947ab39 commit 5b55e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public Session getOrCreate() {
* Adds the app name to set in the query_tag after session creation
*
* @param appName Name of the app.
* @return A {@code Session} object
* @return A {@code SessionBuilder} object
* @since 1.11.0
*/
public SessionBuilder appName(String appName) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/snowflake/snowpark/Session.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ object Session extends Logging {
def create: Session = {
val session = createInternal(None)
val appName = this.appName
if(appName.isDefined) {
if (appName.isDefined) {
session.setQueryTag(s"APPNAME=${appName.get}")
}
session
Expand Down

0 comments on commit 5b55e74

Please sign in to comment.