Salesforce

Snowpark for Scala and Java: Change to Types of Members in DeleteResult, MergeResult, and UpdateResult

« Go Back

Information

 
Summary
Last Modified DateNovember 1, 2022
Article Body

This behavior change is in the 2022_07 bundle. In the 6.32 release, the bundle is disabled by default.

For the most up-to-date details about the version and date in which it will be enabled, as well as other release-related details, see the Behavior Change Log.


In the Snowpark Scala and Java APIs, the DeleteResult, MergeResult, and UpdateResult classes provide value members and getter methods that return the number of rows that have been inserted, updated, and deleted:

  • In the Snowpark Scala API, these value members are named:
    • rowsInserted
    • multiJoinedRowsUpdated
    • rowsUpdated
    • rowsDeleted
  • In the Snowpark Java API, these getter methods are named:
    • getRowsInserted
    • getMultiJoinedRowsUpdated
    • getRowsUpdated
    • getRowsDeleted

In the 1.7.0 release of the Snowpark Library for Scala and Java, the types of these value members and the return types of these getter methods has changed:

Prior to 1.7.0:

  • In the Scala API, the type is Int.
  • In the Java API, the type is int.

Starting with 1.7.0:

  • In the Scala API, the type is Long.
  • In the Java API, the type is long.

 


Ref: 834

TitleSnowpark for Scala and Java: Change to Types of Members in DeleteResult, MergeResult, and UpdateResult
URL NameSnowpark-Scala-and-Java-Change-to-Types-of-Members-in-DeleteResult-MergeResult-and-UpdateResult
Category 
Sub Category 
Article Record TypeRelease Notes

Powered by