SQLContext
The transformation consists of replacing an SQLContext call with the parameter used in the pyspark function. The variable spark_context is transformed to a Snowpark Session instance, making it understandable using Snowflake. Note that the transformation generates an EWI specifying that the import statement is not required.
Input Code:
Output Code:
Last updated