Snowpark Library for Scala and Java release notes for 2024

This article contains the release notes for the Snowpark Library for Scala and Snowpark Library for Java, including the following when applicable:

  • Behavior changes

  • New features

  • Customer-facing bug fixes

Snowflake uses semantic versioning for Snowpark Library for Scala and Java updates.

Version 1.10.0 (February 9, 2024)

Compatible Snowflake release: 8.5

New features

  • Support Java 17.

    • Compatible with JVM 17.

    • When registering a UDF or UDTF, Snowpark automatically sets the runtime_version to 17 if the client is running with JVM 17.

  • Support Dataframe alias.

    • You can use the DataFrame.alias function to assign DataFrames an alias for future reference.

      For example, you could use code such as the following:

      val df1 = df.alias("A")
      df1.join(df2).select(col("A.col"))
      
      Copy

      This is equivalent to df1.join(df2).select(df1("col")).

  • Support for the explode function.

  • You can invoke table functions in the DataFrame.select method.

  • You can use table functions to read function arguments through the TableFunction.apply method.

  • New session constructor Session.getOrCreate.

Improvements

  • Upgraded JDBC to version 3.14.4.

  • New wrapper for is_null function.

  • Upgrade Scala to version 2.12.18.

Bug fixes

  • Updated wrong license information.