Snowpark Migration Accelerator: 转换设置¶
首次启动 Snowpark Migration Accelerator (SMA) 时,需要创建新项目或打开现有项目。每个项目可以存储评估和转换阶段的多次 SMA 执行。完成评估阶段后,需要为项目配置转换阶段参数。
转换设置页面¶
在转换过程中,会提供多个配置选项,但默认设置已适配大多数使用场景。
On the Conversion settings page, choose whether to run the conversion using Default Settings or to select Customize settings to configure advanced options.

If you select Customize settings, SMA opens a Conversion settings dialog where you can review and update settings and then click Save settings.

Conversion Settings¶
With the following settings from the user interface, you can more finely control how the SMA performs conversion.
Pandas
Convert Pandas API to Snowpark API - Specifies to automatically convert Pandas code to the Snowpark equivalent Pandas API (Snowpark Pandas). When enabled, the tool transforms any Pandas operations it finds in your code into their Snowpark counterparts.
DBX
Convert DBX notebooks to Snowflake notebooks - Specifies to convert the .dbc into Jupyter files in a new folder with the .dbc name.
备注
When exporting notebooks, consider exporting them as Databricks, rather than Jupyter. When Jupyter files contain different sources than Python, SMA behavior may be unexpected.
Checkpoints
Identify and collect checkpoints - Activates the feature.
Collect checkpoints as active - Specifies to execute the collected checkpoint in VS Code when running the workload.
Collect user-defined functions returning data frame type - Specifies to validate that dataframes should be collected if the user has their own functions that return DataFrames.
Mode - Specifies the mode type to validate (Schema or DataFrame).
Sample - Specifies the sampling percentage of each DataFrame to validate.
Relevant PySpark functions to collect - Specifies the PySpark packages to collect (by default, all of them are checked). You can also add more packages by adding the package’s full name.
设置完成¶
Once your setup is complete, click the Continue button. This action will initiate the SMA Conversion processes. A progress screen will display the current status of your conversion.

After the conversion finishes, SMA automatically displays the Conversion Results screen.