SPRKSCL1142
Element is not defined
Message: spark element is not defined
Category: Conversion error
Description
This issue appears when the SMA could not determine an appropriate mapping status for the given element. This means, the SMA doesn't know yet if this element is supported or not by Snowpark. Please note, this is a generic error code used by the SMA for any not defined element.
Scenario
Input
Below is an example of a function for which the SMA could not determine an appropriate mapping status, and therefore it generated this EWI. In this case, you should assume that notDefinedFunction()
is a valid Spark function and the code runs.
Output
The SMA adds the EWI SPRKSCL1142
to the output code to let you know that this element is not defined.
Recommended fix
To try to identify the problem, you can perform the following validations:
Check if it is a valid Spark element.
Check if the element has the correct syntax and it is spelled correctly.
Check if you are using a Spark version supported by the SMA.
Additional recommendations
Last updated