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 は、Snowflakeに相当する要素を AST から識別し、対応する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 は、Snowflakeに相当する要素を AST から識別し、対応する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.