Technology

Snowflake's Cortex Code Tames dbt

Snowflake's Cortex Code streamlines dbt project development by automating model creation, testing, and optimization with an AI agent.

By Daniel Singer, Editor, StartupHub.ai

2 min read

Demonstration of Snowflake's Cortex Code interface in action.
Cortex Code integrates AI assistance into dbt workflows on Snowflake.Credit: Snowflake
Contents(4)

Data engineers often juggle disparate tools for transformation logic, documentation, and pipeline monitoring. Snowflake aims to streamline this with its new AI coding agent, Cortex Code, designed to accelerate development within its platform. This tool is built to understand the nuances of the dbt Snowflake environment.

Unlike general AI assistants, Cortex Code leverages metadata from your Snowflake instance and dbt project. It can generate staging models, automatically apply transformations like casting timestamps and renaming columns to snake_case, and incorporates dbt conventions such as Jinja macros.

Context-Aware Code Generation

Users can prompt Cortex Code to create models from scratch, with the agent generating not just SQL but also integrating necessary configuration and references.

The agent also assists in rapid editing and optimization. It analyzes project run results to identify slow or unused models, offering specific optimization advice.

Automated Documentation and Testing

Adding new calculations, like profit margin, can trigger simultaneous updates to YAML files for column descriptions and relevant tests, such as `not_null` or `accepted_values`.

The daily brief

Get the free daily brief with the day's AI news, new AI startups and funding rounds every morning.

Join 11,996 subscribers.

Smart Troubleshooting and Optimization

For complex issues, such as intricate window functions or Snowflake-specific joins, Cortex Code provides context-aware, syntactically correct suggestions, shortening the debugging cycle.

Flexible Workflow Integration

Cortex Code supports various dbt implementations, including Snowflake's native offering, dbt Core, and dbt Platform. It bridges local development environments with Snowflake, offering a unified AI experience.

Access is provided through the Snowsight interface for native dbt projects on Snowflake, allowing users to create projects, query deployed ones, and inspect files. Alternatively, the Snowflake Cortex Code CLI brings this AI agent directly to your terminal for tasks like documentation generation or test writing.

Mentioned in this story

Markets

SnowflakeNYSE:SNOW

Sources

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 11,996 subscribers.

TopicsSnowflakedbtCortex CodeAI/MLData EngineeringCloud Data Warehousing

Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute, free.

Watch

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.