← Back to Glossary

data pipeline

A data pipeline is a series of interconnected processes that extract data from various sources, transform it into a usable format, and load it into a…

A data pipeline is a series of interconnected processes that extract data from various sources, transform it into a usable format, and load it into a destination system for analysis or storage. It automates the flow of data through different stages, ensuring data is cleaned, validated, and prepared for consumption by downstream applications or users. Modern data pipelines often incorporate tools like Apache Airflow for orchestration, dbt for transformation, and Fivetran for data extraction. These pipelines can handle both batch and real-time data processing, enabling organizations to make data-driven decisions based on up-to-date information. In the context of DuckDB, you might create a simple data pipeline using SQL to extract data from a CSV file, transform it, and load it into a table:

Copy code

-- Extract data from CSV CREATE TABLE raw_data AS SELECT * FROM read_csv_auto('data.csv'); <glossary-callout kind="webinar" eyebrow="Watch · Webinar" title="Agentic Data Engineering: Building Pipelines End-to-End with AI" blurb="Watch an AI agent build a full data pipeline from scratch: ingestion with DLT, orchestration in Orchestra, staging and snapshots in MotherDuck, and a…" href="https://motherduck.com/videos/agentic-data-engineering-pipelines-ai/" cta="Watch the webinar" /> -- Transform data CREATE TABLE transformed_data AS SELECT id, UPPER(name) AS name, CASE WHEN age < 18 THEN 'Minor' ELSE 'Adult' END AS age_category FROM raw_data; -- Load data into final table CREATE TABLE final_table AS SELECT * FROM transformed_data;

This example demonstrates a basic Extract, Transform, Load (ETL) process within DuckDB.

Watch: Why use DuckDB in your data pipelines ft. Niels Claeys

Related terms