Snowpark Migration Accelerator:コレクション

コレクションプロセスを実行するには、以下の手順に従ってください。

  1. プロセスを開始するには、 VS Code でコレクションワークロードを開きます。

    コレクションワークロード
  2. Generate checkpoints using the checkpoints.json file.

チェックポイントを生成するには、以下のいずれかのアクションを実行できます。

  1. 提案されたメッセージを受け入れてチェックポイントを生成します。

    検出されたチェックポイントを読み込むメッセージ
  2. 「Snowflake:すべてのチェックポイントをロード」コマンドを実行します。

    すべてのチェックポイントをロードするコマンド

    すべてのチェックポイントが正常にロードされると、ファイルは以下のように表示されるはずです。

    チェックポイントを含むファイル
  3. Pythonファイルを実行し、チェックポイント収集プロセスを実行します。

When running a Python file that includes checkpoints, a folder named snowpark-checkpoints-output will be created, containing the collection results.

収集結果出力フォルダ

The checkpoints_collection_results.json file contains the consolidated results of the collection process.

{
  "results": [
    {
      "timestamp": "2025-05-05 15:06:43",
      "file": "sample.py",
      "line_of_code": 57,
      "checkpoint_name": "sample$BBVOC7$df1$1",
      "result": "PASS"
    },
    {
      "timestamp": "2025-05-05 15:06:53",
      "file": "sample.py",
      "line_of_code": 57,
      "checkpoint_name": "sample$BBVOC7$df2$1",
      "result": "PASS"
    },
    {
      "timestamp": "2025-05-05 15:06:58",
      "file": "sample.py",
      "line_of_code": 57,
      "checkpoint_name": "sample$BBVOC7$df3$1",
      "result": "PASS"
    }
  ]
}

The snowpark-checkpoints-output folder should be copied into the validation workload to grant access to the collection results. For details on how to proceed with the validation process, refer to the Validation Section.