Figure 1: A directory of PySpark pipelines scanned, rewritten and reported on from one conversational prompt.
Behind that single prompt, CoCo’s agentic workflow runs through the steps a migration expert would:
Instead of searching across files for incompatible patterns and cross-referencing documentation, the developer stays in one workflow while CoCo handles the scanning, fixing and reporting needed to get Spark code running on Snowflake.
Migration is rarely one clean step, so the skill meets a codebase wherever it is. A few other ways to point it at your work:
The skill auto-activates when you mention Spark, PySpark or code migration; or you can invoke it directly with spark-migration. As noted before, it will flag anything that needs manual review, so you stay in control of what changes.
That is a compelling offer: less manual compatibility testing, less refactoring and a faster path to running Spark workloads natively on Snowflake. What used to take hours of manual effort, even with existing deterministic tools, now takes minutes.
The spark-migration skill is bundled with CoCo; no setup required.
Try it: “Migrate this file to Snowpark Connect.”
Get started with CoCo and Spark migration by referring to this documentation.
1 Based on customer production use cases and proof-of-concept exercises comparing the speed and cost for Snowpark versus managed Spark services between November 2022 and May 2025. All findings summarize actual customer outcomes with real data and do not represent fabricated datasets used for benchmarks.
Running Spark is not just about writing transformations and business logic. It also means tuning clusters, patching infrastructure and managing dependency environments.
Moving those workloads onto Snowflake addresses that directly, with customers experiencing up to 5.1x faster performance and 42% lower costs1. Snowpark Connect for Apache Spark™ lets your existing Spark code run on Snowflake’s engine with minimal changes; no clusters to provision, tune or patch.
Most generic AI coding assistants can fall short when it comes to migration at scale. They can rewrite a snippet, but they lack the compatibility context to move an entire codebase to a new engine: which patterns are unsupported, how to map them to DataFrame equivalents and how to record what changed. The spark-migration skill in Snowflake CoCo, a data-native AI coding agent, is built to close that gap.
The clearest way to see the skill is to watch it run. The demo below starts with a directory of data pipelines written in PySpark.
From there, the prompt is simple. Just ask CoCo to migrate a file or directory of files to Snowpark Connect. This will launch the spark-migration skill coordinating the snowpark-connect migration path that will guide you through making your Spark code compatible with Snowpark Connect. Note that the input file(s) for this skill could be Python, Scala or Java code files (as well as the build files). The skill can also take in notebook files to ensure they are compatible with Snowflake.
The demo shows a large Spark codebase checked for compatibility and migrated to Snowflake from a single prompt.
Join our session “What AI Agents Need Before They Touch a Media Decision” at Advertising Week New York on Wednesday, […]
Credit: Robert Triggs / Android Authority TL;DR Samsung has refreshed its SmartThings app on mobile and smart home appliances. The […]
Observability doesn’t end when the incident ends Consider a hypothetical large financial services company serving millions of customers. Like many […]