SPRKPY1008
pyspark.sql.context.HiveContext
Message: pyspark.sql.context.HiveContext is not required
Category: Warning.
Description
This issue appears when the tool detects the usage of pyspark.sql.context.HiveContext, which is not required.
Scenario
Input
In this example an example to create a connection to an Hive store.
Output
In Snowflake there are not Hive stores, so the Hive Context is not required, You can still use parquet files on Snowflake please check this tutorial to learn how.
the sc variable refers to a Snow Park Session Object
Recommended fix
For the output code in the example you should add the Snow Park Session Object similar to this code:
Additional recommendations
For more support, you can email us at sma-support@snowflake.com or post an issue in the SMA.
Last updated