Snowpark Migration Accelerator: Sammlung

Um den Erfassungsprozess zu verfolgen, fahren Sie bitte mit den folgenden Schritten fort:

  1. Öffnen Sie den Workload für die Erfassung in VS Code, um den Prozess zu starten.

    Sammlungs-Workload
  2. Generate checkpoints using the checkpoints.json file.

Um Checkpoints zu generieren, können Sie eine der folgenden Aktionen durchführen:

  1. Generieren Sie Checkpoints, indem Sie die vorgeschlagene Meldung akzeptieren:

    Meldung „Gefundene Checkpoints laden“
  2. Führen Sie den Befehl „Snowflake: Alle Checkpoints laden“ aus:

    Befehl „Alle Checkpoints laden“

    Sobald alle Checkpoints erfolgreich geladen sind, sollten Ihre Dateien wie folgt aussehen:

    Datei mit Checkpoints
  3. Führen Sie die Python-Datei aus, um den Checkpoint-Sammlungsprozess auszuführen.

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

Ausgabeordner für Erfassungsergebnisse

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.