Skip to main content

Qry Lakeflow

Overview​

Remember when building data pipelines meant spending weeks wrestling with Airflow DAGs, debugging cryptic YAML errors at 2 AM, and explaining to your manager why "it works on my machine" doesn't apply to production? Those days are over.

Lakeflow is Qry's data orchestration engine for building, scheduling, and monitoring data pipelines and jobs. Think Databricks Lakeflow meets a UX designer who actually uses the product. Define complex data workflows using simple YAML or drag-and-drop visual editing — your choice, and yes, they sync automatically.

Key Features​

Professional IDE Experience​

Lakeflow features a full IDE interface inspired by VS Code and modern development tools. Work with multiple pipelines and jobs simultaneously using tabs, keyboard shortcuts, and powerful navigation.

Dual Editing Modes​

Switch between YAML and visual drag-and-drop editing whenever you want. Changes in one mode automatically sync to the other. It's like having your cake and eating it too, except the cake is a perfectly configured ETL pipeline.

Interactive DAG Canvas​

Design task workflows with drag-and-drop connections. No more drawing diagrams on whiteboards that nobody updates. Your DAG is always accurate because it is the configuration.

Real-Time Monitoring​

Watch execution progress live with animated task nodes. Blue pulse means running, green means success, red means "time to investigate." It's like watching your data do a choreographed dance, except occasionally one dancer trips.

AI-Assisted Authoring​

Tell Lakeflow what you want in plain English, and it generates the YAML for you. "Create a pipeline that aggregates daily sales by region" becomes a working configuration in seconds. Your keyboard thanks you.

Stage-Based Pipeline Design​

Visual Source → Transform → Expectations → Sink flow that makes data lineage obvious. Even your manager can follow along during demos.

Git Integration​

Version control your pipelines and jobs with Git Folders. Track changes, collaborate with teammates, and integrate with CI/CD workflows.

Two Core Abstractions​

Lakeflow gives you two powerful building blocks:

TypePurposeThink of it as...
PipelinesSingle-purpose data transformations (ETL/ELT)A well-trained specialist
JobsMulti-task orchestrations with dependenciesA conductor leading an orchestra

Transforming data inside one warehouse? Use a job SQL task, not a pipeline. A pipeline reads rows into Qry, transforms them there and writes them back; a SQL task runs its statements in the engine, so nothing moves. Measured on a Databricks 2X-Small warehouse building bronze → silver → gold over samples.tpch: a pipeline wrote 245 rows/s and left no Unity Catalog lineage; SQL tasks built 37.5 M rows in 25 s with full lineage. Pipelines are for moving data between systems. Walkthrough: Building silver and gold layers.

Getting Started​

  1. Open Qry
  2. Click Lakeflow in the left navigation rail
  3. Marvel at the dashboard showing all your pipelines and jobs

The IDE Interface​

Lakeflow is a workbench: the explorer on the left, open items as tabs, and the item itself.

  • Explorer: switch between Jobs and Pipelines; each job shows its schedule and how its last run went, each pipeline its version and state. + creates either, in your personal space or a workspace.
  • A job or a pipeline opens with its header — name, schedule or version, last run, Run — and four tabs:
    • Graph: the tasks (or stages), each saying what it does and how it last went. Select one to inspect it; Edit graph to add and connect tasks.
    • YAML: the definition, exactly as written, validated as you type, with its tasks, parameters and datasources beside it.
    • Runs: every run grouped by day — who or what started it, its parameters, a timeline of its tasks, and a failure explained.
    • Settings: schedule, run settings, name, tags.

Keyboard Shortcuts​

ShortcutAction
Cmd+SSave the open job or pipeline
Cmd+BToggle the explorer
Cmd+KSearch or ask Qry (find a job or pipeline by name)
⌫ / DeleteIn Edit graph: remove the selected link

Pipelines: Your Data Transformation Workhorses​

Pipelines are single-purpose data transformation workflows that move and transform data between sources and targets. One pipeline, one job, done well.

Pipeline Lifecycle​

DRAFT → DEPLOYED → DEPRECATED
  • Draft: a version you are still editing; Deploy makes it the one that runs.
  • Deployed: the version jobs and Run execute. Saving changes creates a new draft version; deploy it when ready.
  • Deprecated: kept for its history, no longer run.

Creating a Pipeline​

  1. In the explorer, + → New pipeline — it opens on its YAML tab.
  2. Define it:
apiVersion: qry.dev/v1
kind: Pipeline
metadata:
name: orders-clean
description: Clean orders from Postgres into BigQuery
spec:
source:
datasource: postgres-prod # by name
query: |
SELECT * FROM sales.orders WHERE order_date >= '2024-01-01'
mode: full # or incremental, with watermark_column
transform:
sql: |
SELECT order_id, customer_id, CAST(amount AS DECIMAL(10,2)) AS amount, order_date
FROM source WHERE amount > 0
expectations:
- name: positive_amount
constraint: "amount > 0"
action: warn # warn, drop or fail
sink:
datasource: bigquery-analytics
schema: analytics
table: orders_clean
mode: replace # append, replace, upsert or merge
  1. Save, then Deploy, then Run.

A pipeline moves rows through Qry, so it is for moving data between systems; to transform data inside one warehouse, use a job with SQL tasks.

Visual Pipeline Editor​

The Graph tab draws the pipeline's stages:

Source → Transform → Data quality → Sink

Select a stage to configure it in the panel on the right — the source and sink by datasource name, catalog, schema and table, the query, incremental loading, the transform, the quality rules. An optional stage that is not there yet is a dashed Add card. While a run goes, each stage shows its state and rows in place. The source query opens a full SQL editor: the datasource's schema to browse and click into the query, completions, an AI prompt to write or rewrite it, and a preview of its first rows (Cmd+Enter) — a preview only ever runs a single read-only query.

Jobs: Orchestrating the Orchestra​

Jobs combine multiple tasks into complex workflows. Tasks can depend on each other, forming a directed acyclic graph (DAG) - fancy words for "things happen in the right order."

Job Parameters​

SQL statements and conditions can read {{ params.<name> }}. Give a parameter a default in the job, and every run that does not pass one — a scheduled run included — uses it:

spec:
parameters:
mode: incremental

Run now asks for the parameters a job reads (prefilled with their defaults; an empty field is not sent). The API takes them as {"parameters": {...}}.

Job Lifecycle​

DRAFT → ACTIVE ⟷ PAUSED → ARCHIVED

Running is not scheduling. Run works on a draft, active or paused job; the lifecycle only decides whether the schedule fires:

  • Draft: being built; runs only on demand.
  • Active: its schedule fires — the switch in the job's header turns it on.
  • Paused: the same switch off; the schedule is kept.
  • Archived: soft deleted, cannot run.

A job Forge migrated is left in draft on purpose: turning its schedule on — or running it — is the cutover, so Qry asks first (and the API refuses it without confirm_cutover). Stop the original job on the source before.

Creating a Job​

  1. Click + New Job in the toolbar
  2. Define your orchestration (YAML mode):
apiVersion: qry.dev/v1
kind: Job
metadata:
name: daily-analytics
description: End-to-end daily analytics processing
spec:
triggers:
- type: schedule
cron: "0 6 * * *"
timezone: UTC
settings:
fail_fast: true
concurrency: 4
tasks:
- name: silver-sales
type: sql
datasource: databricks-prod
statements:
- |
CREATE OR REPLACE TABLE analytics.silver.sales AS
SELECT * FROM analytics.bronze.sales WHERE amount IS NOT NULL

- name: generate-report
type: prompt
depends_on: [silver-sales]
prompt: Analyze today's sales and summarize the key changes.

- name: notify-team
type: notification
depends_on: [generate-report]
channels:
- type: email
recipients: [analytics@company.com]
message: Daily analytics job completed
  1. Save (⌘S), check it in the Graph tab, Run it, and turn its schedule on when it should run by itself.

Task Types​

Lakeflow supports six task types:

SQL Task​

Run SQL statements, in order, inside a datasource's engine — the building block of a medallion (bronze → silver → gold) in one warehouse.

- name: silver-orders
type: sql
datasource: databricks-prod # the visual editor picks it from a list
on_error: fail # or continue: run the rest, report the task completed
statements:
- |
MERGE INTO lakehouse.silver.orders AS t
USING (SELECT * FROM lakehouse.bronze.orders
WHERE load_date = DATE {{ params.day | default(run_date) }}) AS s
ON t.order_key = s.order_key
WHEN MATCHED THEN UPDATE SET *
WHEN NOT MATCHED THEN INSERT *
  • Templating: {{ params.<name> }} (a run's parameters — asked by Run now, or passed through the API or a conversation — else the job's defaults in spec.parameters), {{ run_date }} (UTC), {{ run_started_at }}, {{ run_id }}, {{ job_name }} and {{ tasks.<task>.<field> }}. Each renders as a SQL literal — write DATE {{ run_date }}, not '{{ run_date }}' — so a parameter can never become SQL; an unknown name fails the task.
  • Quality gates: a statement that raises (assert_true on Databricks) fails the task, and with fail_fast the tasks after it are skipped.
  • Name tables in full (catalog.schema.table): statements run in the connection's default context.
  • Admins only: the job's owner and the identity it runs as must both be Qry admins. Statements write with the datasource's credential, so give it exactly the schemas the job writes.

Pipeline Task​

Run a Lakeflow pipeline as part of your job.

- name: run_etl
type: pipeline
pipeline_name: my_pipeline
timeout_seconds: 3600

Prompt Task​

Execute an AI prompt - yes, you can have AI analyze your data as part of the workflow.

- name: analyze_data
type: prompt
prompt_config:
prompt: "Analyze the data and provide insights"
system: "You are a data analyst"
model: "<model id>" # any model enabled in Admin › Model permissions
tools:
- DatabaseTool
- PythonTool
context:
include_upstream_results: true
output:
format: "markdown"
max_tokens: 4000

Python Task​

Run custom Python code in a sandboxed environment.

- name: custom_processing
type: python
python_config:
script: |
import pandas as pd

# Access upstream results
upstream_data = context.get('upstream_results', {})

# Your custom logic
result = {"processed": True}
print(f"Processed data: {result}")
requirements:
- pandas>=2.0.0
timeout_seconds: 600

Notification Task​

Send alerts when things happen (or don't).

- name: send_alert
type: notification
notification_config:
channels:
- type: email
recipients:
- team@company.com
message: "Job completed with status: {{ job.status }}"
subject: "Daily Job Update"

Condition Task​

Choose which tasks run from what happened so far. Branches are tried in order; the first whose condition holds runs its tasks, and if none holds the default_tasks run. Every other target is skipped ("Branch not taken"), and so is whatever depends on it. Targets wait for the condition task even without listing it in depends_on.

- name: decide
type: condition
branches:
- condition: "params.mode == 'full'"
tasks: [full-rebuild]
default_tasks: [incremental-load]

Any task can also carry its own condition; it runs only when the condition holds:

- name: gold-orders
type: sql
depends_on: [silver-orders]
condition: "tasks['silver-orders'].statements_failed == 0"
datasource: databricks-prod
statements: [...]

Conditions are Jinja expressions over tasks (earlier tasks' outputs), params and run_date; writing one inside {{ }} works too.

Visual Job Editor​

The Graph tab draws the tasks by dependency. Each card names the task, says what it does (MERGE → silver.lineitem, 2 quality checks) and how it last went — a dot and a word, its time and rows; only a failure gets a coloured edge, with the engine's message.

  • Select a task to open the inspector: where it runs, what it depends on, what happens on error, and each statement with its last result. Run this task and Run from here are there and in the task's ⋯ menu. A pipeline task also shows a sample of the table it writes under the graph.
  • Edit graph: an Add a task bar appears — drag a task type onto the graph or click it; drag from a task's edge to another to add a dependency; ⌫ removes a link. Edits change the YAML in place: your comments and the order of your keys stay.

Scheduling​

A schedule is a trigger with a cron expression and a time zone:

spec:
triggers:
- type: schedule
cron: "0 6 * * *" # daily at 06:00
timezone: Europe/Madrid

The header reads it back in words — Every day at 06:00 · Europe/Madrid — with the next run, and its switch turns it on or off.

PatternWhen it runs
0 * * * *Every hour
0 6 * * *Daily at 06:00
0 6 * * 1Every Monday at 06:00
0 6 * * 1-5Weekdays at 06:00
0 6 1 * *First day of the month at 06:00

Format: minute hour day month weekday

Runs and monitoring​

While a job runs, its graph shows each task's state live — the running one with the live dot. The Runs tab keeps every run, grouped by day: who or what started it, the parameters it used, a timeline of its tasks, and for a failure the task explained — its message, the engine's code, the statements before it with their results, and which tables still hold the previous run's data. Re-run failed and skipped runs just those; Cancel run stops one in progress.

Folder Organization​

Keep your pipelines and jobs organized:

  1. Click + next to "Folders" in the sidebar
  2. Configure:
    • Name: URL-safe slug (sales-etl)
    • Display Name: Human-readable (Sales ETL Pipelines)
    • Color: Visual identifier
    • Icon: Choose from Lucide icons

Move items via drag-and-drop, context menu, or bulk actions.

Git Folders​

Folders can be Git-enabled for version control:

  1. Create a folder or select existing one
  2. Click Enable Git in folder settings
  3. Optionally connect to a remote repository

Git Folders provide:

  • Version history for all pipelines and jobs inside
  • Branch management for safe experimentation
  • Remote sync with GitHub, GitLab, Bitbucket
  • CI/CD integration for automated deployments

See Git Folders documentation for complete details.

Workspace Integration​

Lakeflow integrates with Qry Workspaces for team collaboration:

  • Personal: Visible only to you
  • Workspace: Shared with team members

Permissions follow the usual pattern: View, Execute, Edit, Admin.

AI-Assisted YAML Generation​

Open the AI Assistant from the toolbar and describe what you want:

"Create a pipeline that aggregates daily sales by product category
from the transactions table in BigQuery and stores results in
the analytics schema"

The AI generates the YAML. Click Apply. Done.

Example Prompts:

Pipeline:

Create a pipeline to deduplicate customer records from the raw_customers
table based on email, keeping the most recent entry

Job:

Build a job that runs every Monday at 9 AM to:
1. Refresh the weekly sales pipeline
2. Generate an AI summary of sales trends
3. Email the report to the sales team

Best Practices​

Pipeline Design​

  1. Single Responsibility: One pipeline, one purpose
  2. Idempotency: Design to be safely re-runnable
  3. Data Quality Checks: Use expectations to catch issues early
  4. Documentation: Future you will thank present you

Job Orchestration​

  1. Modular Tasks: Break complex workflows into discrete steps
  2. Realistic Timeouts: Don't guess, measure
  3. Retry Configuration: Handle transient failures gracefully
  4. Notifications: Alert on failures before your users do

Naming Conventions​

Pipelines:  {domain}_{action}_{frequency}
e.g., sales_aggregate_daily

Jobs: {domain}_{workflow}_{frequency}
e.g., analytics_reporting_weekly

Folders: {domain}-{category}
e.g., sales-etl, finance-reports

Scheduling Strategy​

  • Off-peak hours: Schedule heavy jobs during low-usage times
  • Dependency chains: Stagger dependent jobs appropriately
  • Timezone awareness: Consider your team's working hours
  • Buffer time: Allow gaps between scheduled jobs

Troubleshooting​

Pipeline Won't Deploy​

  • Validate the YAML configuration
  • Check for syntax errors in SQL queries
  • Verify datasource connections exist
  • Ensure you have edit permissions

Job Not Running on Schedule​

  • Verify job status is Active (not Draft or Paused)
  • Check cron expression syntax
  • Verify timezone setting
  • Review scheduler service logs

Task Stuck in Running​

  • Check task timeout settings
  • Review underlying query/script performance
  • Cancel the run and investigate
  • Check resource limits (memory, CPU)

API Reference​

For programmatic access:

# List pipelines
GET /api/lakeflow/pipelines

# Create pipeline
POST /api/lakeflow/pipelines
Content-Type: application/json
{
"definition": "<yaml>",
"format": "yaml"
}

# Run job (parameters optional; they feed {{ params.<name> }})
POST /api/lakeflow/jobs/{id}/run
Content-Type: application/json
{
"parameters": {"day": "2026-10-16"}
}

# Stream run progress (SSE)
GET /api/lakeflow/job-runs/{run_id}/stream

See the API Reference for complete documentation.

See Also​

  • Git Folders - Version control for pipelines and jobs
  • DataFlow - AI-native ETL for simpler migrations
  • Forge - LLM-driven database migration platform (Teradata/Oracle/Cloudera → BigQuery)
  • Scheduled Tasks - For scheduling conversations and reports
  • Notebooks - Reusable analysis workflows
  • Workspaces - Team collaboration