SPRKPY1064

The Spark element does not apply.

Message: The Spark element does not apply since snowflake uses snowpipe mechanism instead.

Category: Warning

Description

This issue appears when the tool detects the usage of any element from the pyspark.streaming library:

Scenario

Input

Below is an example with one of the elements that trigger this EWI.

from pyspark.streaming.listener import StreamingListener

var = StreamingListener.Java
var.mro()

df = spark.createDataFrame([(25, "Alice", "150"), (30, "Bob", "350")], schema=["age", "name", "value"])
df.show()

Output

The SMA adds the EWI SPRKPY1064 on the output code to let you know that this function does not apply.

Recommended fix

The SMA removes the import statement and adds the issue to the Issues.csv inventory, remove any usages of the Spark element.

Additional recommendations

Last updated