Snowflake Extends Cortex Code CLI to dbt

Snowflake has extended its Cortex Code command-line interface to integrate with dbt and Airflow. The move is designed to streamline data engineering workflows by allowing dbt models to be triggered as part of in-warehouse AI processes. This integration aims to create a more unified environment for developing, orchestrating, and deploying data transformation and AI workloads.

- The key architectural shift is moving AI assistance from external tools to a native function within the data warehouse. Unlike previous AI assistants that required manually copying schemas and other context, the Cortex Code CLI has inherent awareness of Snowflake objects, schemas, data lineage, and governance policies, which significantly reduces setup and debugging time. - For analytics engineering, a new best practice involves using dbt to define a semantic layer that Cortex can understand. By creating "semantic views" within dbt projects, engineers can provide the AI with governed, trustworthy definitions of business metrics and relationships, which leads to more accurate and reliable AI-generated SQL and insights for business users. - The integration accelerates development by enabling the creation of entire dbt pipelines from single natural language prompts. A demonstrated workflow shows the CLI scanning source tables, generating a new dbt project, building models to track metrics like weekly revenue, adding data quality tests, and creating Snowflake semantic views, all from one command. - This move intensifies the competition between Snowflake and Databricks for dominance in the AI-native data stack. While Databricks has traditionally focused on open-source flexibility for data engineering and ML workloads, Snowflake is leveraging its position as the governed data warehouse to own the AI-powered developer experience for analytics. - To encourage adoption by developers not currently on its platform, Snowflake has introduced a self-service monthly subscription for the Cortex Code CLI. This allows teams to use the AI assistant within their existing dbt and Airflow workflows without needing to be an existing Snowflake customer, lowering the barrier to entry. - For governance in regulated industries, this integration ensures that AI-generated queries automatically adhere to existing security and privacy controls. All role-based access controls, data masking policies, and other governance rules within Snowflake are natively honored, providing a secure way to deploy AI on sensitive data. - The AI's awareness of the underlying data platform allows it to assist with more than just writing code; it can help with debugging, performance optimization, and architectural decisions. For instance, it can analyze tables for data quality issues like null values or distribution anomalies without requiring manual schema extraction.

Get your own daily briefing

Scout delivers personalized news, insights, and conversations tailored to your role and industry.

Download on the App Store

Shared from Scout - Be the smartest in the room.