Skip to content

Commit

Permalink
SCT-7633 Adding com.snowflake.snowpark.Session.SessionBuilder.GetOrCr…
Browse files Browse the repository at this point in the history
…eate
  • Loading branch information
sfc-gh-jvenegasvega-1 committed Nov 27, 2023
1 parent b23d06c commit 3d92d37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/snowflake/snowpark_java/SessionBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public Session create() {
* @since 1.10.0
*/
public Session getOrCreate() {
// disable closure cleaner in Java session,
// it only works with Scala UDF.
this.builder.config("snowpark_enable_closure_cleaner", "never");
return new Session(this.builder.getOrCreate());
}
}

0 comments on commit 3d92d37

Please sign in to comment.