SPRKPY1028
pyspark.sql.readwriter.DataFrameReader.orc has a workaround
Category
Warning.
Description
This issue appears when the tool detects the usage of pyspark.sql.readwriter.DataFrameReader.orc which has a workaround.
Input code:
Output code:
Scenario:
orc(
#Path path,
#Options mergeSchema=None, pathGlobFilter=None, recursiveFileLookup=None, modifiedBefore=None, modifiedAfter=None )
A couple of workarounds are possible in this scenario. Path: The first parameter "path" must be a stage to make an equivalence with Snowpark, so is recommended to implement a temporary stage and add each ".orc" path to the stage, using the prefix "file://", as follows. Source:
Expected:
Options: The additional parameters are also not supported by Snowpark as parameters, but for many of them you can use the "option" function to specify those .orc parameters as options, as follows: Source:
Expected:
The following options are not supported for Snowpark: mergeSchema, compression.
Recommendation
For more support, you can email us at snowconvert-info@snowflake.com. If you have a contract for support with Snowflake, reach out to your sales engineer and they can direct your support needs.