SPRKPY1002
Element is not supported
Category
Conversion error.
Description
This issue appears when the tool detects the usage of an element that is not supported in Snowpark, and does not have it's own error code associated with it. This is the generic error code used by the SMA for an unsupported element.
Additional Considerations
Some elements do not have a direct equivalent in Snowpark but that doesn’t mean that similar actions cannot be achieved. For example, in issues with this code and description:
This happens because there are some differences between the Spark and Snowpark API options for parameters in the load
function:
SPARK
SNOWPARK
sep
FIELD_DELIMITER
inferSchema
INFER_SCHEMA
header
When reading you can use PARSE_HEADER to indicate if you need to consider the presence of a header for inference, or SKIP_HEADER
A workaround could still exist. In this case, using the option function could allow you to pull from a csv file in a stage:
Even though though the option above is not supported, this does not mean that a solution cannot be found. It only means that the tool itself cannot find the solution.
Pyspark.ml Considerations
Recommendation
Last updated