SPRKSCL1161
Snowpark and Snowpark Extensions were not added to the project configuration file.
Message: Failed to add dependencies.
Category: Conversion error.
Description
This issue occurs when the SMA detects a Spark version in the project configuration file that is not supported by the SMA, therefore SMA could not add the Snowpark and Snowpark Extensions dependencies to the corresponding project configuration file. If Snowpark dependencies are not added, the migrated code will not compile.
Scenarios
There are three possible scenarios: sbt, gradle and pom.xml. The SMA tries to process the project configuration file by removing Spark dependencies and adding Snowpark and Snowpark Extensions dependencies.
Scenario 1
Input
Below is an example of the dependencies
section of a sbt
project configuration file.
Output
The SMA adds the EWI SPRKSCL1161
to the issues inventory since the Spark version is not supported and keeps the output the same.
Recommended fix
Manually, remove the Spark dependencies and add Snowpark and Snowpark Extensions dependencies to the sbt
project configuration file.
Make sure to use the Snowpark version that best meets your project's requirements.
Scenario 2
Input
Below is an example of the dependencies
section of a gradle
project configuration file.
Output
The SMA adds the EWI SPRKSCL1161
to the issues inventory since the Spark version is not supported and keeps the output the same.
Recommended fix
Manually, remove the Spark dependencies and add Snowpark and Snowpark Extensions dependencies to the gradle
project configuration file.
Make sure that dependencies version are according to your project needs.
Scenario 3
Input
Below is an example of the dependencies
section of a pom.xml
project configuration file.
Output
The SMA adds the EWI SPRKSCL1161
to the issues inventory since the Spark version is not supported and keeps the output the same.
Recommended fix
Manually, remove the Spark dependencies and add Snowpark and Snowpark Extensions dependencies to the gradle
project configuration file.
Make sure that dependencies version are according to your project needs.
Additional recommendations
Make sure that input has a project configuration file:
build.sbt
build.gradle
pom.xml
Spark version supported by the SMA is 2.12:3.1.2
You can check the latest Snowpark version here.
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated