Snowpark Migration Accelerator: 工具执行¶
After setting up your project, you can run the Snowpark Migration Accelerator (SMA).
Assessment Process¶
The Assessment process performs an extended evaluation of your source code to determine which conversion type fits best.
This process is composed of three distinct phases:
加载源代码:SMA 扫描输入目录中的所有文件以创建文件清单。根据该清单,它使用所指定文件扩展名中的代码构建语义模型。
Analyzing Source Code: SMA analyzes the source code to determine which conversion type fits best.
Generating Results: SMA generates the output files needed to display the assessment report. The output varies depending on the conversion type selected.
After all three phases are complete, the Assessment Results page is automatically displayed.
SCOS Conversion Process¶
The SCOS Conversion process converts your source code to Snowpark Connect (SCOS) code.
The application begins scanning all files in the input directory. The SCOS Conversion process consists of three distinct phases:
加载源代码:SMA 扫描输入目录中的所有文件以创建文件清单。根据该清单,它使用所指定文件扩展名中的代码构建语义模型。
分析源代码:在此主要阶段,SMA 会创建抽象语法树 (AST) 来表征源代码的功能。在构建 AST 时,它还会创建符号表,用于跟踪转换过程中的元素和函数。此符号表有助于生成所有输出报告。在转换模式下,SMA 会识别 AST 中具有 Snowflake 等效项的元素,并将它们映射到相应的 Snowflake 函数。
Writing Results: In the final step, SMA generates output files. For the SCOS Conversion process, SMA produces the converted code in the specified output folder.
After all three phases are complete, the SCOS Conversion Results page is automatically displayed.
Snowpark API Conversion Process¶
The Snowpark API Conversion process converts your source code to Snowpark API code.
The application requires you to select whether to use default settings or customize the settings. For more information on customizing settings, refer to the Conversion Settings section.
After configuration is complete, the tool begins scanning all files in the input directory. The Snowpark API Conversion process consists of three distinct phases:
加载源代码:SMA 扫描输入目录中的所有文件以创建文件清单。根据该清单,它使用所指定文件扩展名中的代码构建语义模型。
分析源代码:在此主要阶段,SMA 会创建抽象语法树 (AST) 来表征源代码的功能。在构建 AST 时,它还会创建符号表,用于跟踪转换过程中的元素和函数。此符号表有助于生成所有输出报告。在转换模式下,SMA 会识别 AST 中具有 Snowflake 等效项的元素,并将它们映射到相应的 Snowflake 函数。
Writing Results: In the final step, SMA generates output files. For the Snowpark API Conversion process, SMA produces the converted code in the specified output folder.
After all three phases are complete, the Snowpark API Conversion Results page is automatically displayed.