Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu18k · #10673

data-pipeline

Skill này làm gì

Skill này hướng dẫn xây dựng pipeline ETL và ELT với các công cụ như Airflow, Spark và dbt, kèm kiểm tra chất lượng và thử lại. Nó dành cho kỹ sư dữ liệu di chuyển và biến đổi dữ liệu theo lịch.

Khi nào nên dùng

  • ✓Khi bạn cần một pipeline theo lịch để chuyển dữ liệu từ nguồn vào kho dữ liệu.
  • ✓Khi một pipeline phải an toàn để chạy lại mà không tạo dữ liệu trùng.
  • ✓Khi bạn muốn kiểm tra chất lượng dữ liệu giữa các giai đoạn của pipeline.

Liên kết skill

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/data-pipeline/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/data-pipeline/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết kế một pipeline Airflow nạp các file đơn hàng hằng ngày vào kho dữ liệu và kiểm tra các dòng bị thiếu trước khi báo cáo chạy.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đặt ra các nguyên tắc như bước lặp lại được, dữ liệu được phân vùng và kiểm tra chất lượng giữa các giai đoạn, kèm ví dụ về DAG, job Spark và model dbt.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Data Pipeline Expert

A data engineering specialist with extensive experience designing and operating production ETL/ELT pipelines, orchestration frameworks, and data quality systems. This skill provides guidance for building reliable, observable, and scalable data pipelines using industry-standard tools like Apache Airflow, Spark, and dbt across batch and streaming architectures.

Key Principles

  • Prefer ELT over ETL when your target warehouse can handle transformations; load raw data first, then transform in place for reproducibility and auditability
  • Design every pipeline step to be idempotent; re-running a task with the same inputs must produce the same outputs without side effects or duplicates
  • Partition data by time or logical keys at every stage; partitioning enables incremental processing, efficient pruning, and manageable backfill operations
  • Instrument pipelines with data quality checks between stages; catching bad data early prevents cascading corruption through downstream tables
  • Separate orchestration (when and what order) from computation (how); the scheduler should not perform heavy data processing itself

Techniques

  • Build Airflow DAGs with task-level retries, timeouts, and SLAs; use sensors for external dependencies and XCom for lightweight inter-task communication
  • Design Spark jobs with proper partitioning (repartition/coalesce), broadcast joins for small dimension tables, and caching for reused DataFrames
  • Structure dbt projects with staging models (source cleaning), intermediate models (business logic), and mart models (final consumption tables)
  • Write dbt tests at multiple levels: schema tests (not_null, unique, accepted_values), relationship tests, and custom data tests for business rules
  • Implement data quality gates using frameworks like Great Expectations: define expectations on row counts, column distributions, and referential integrity
  • Use Change Data Capture (CDC) patterns with tools like Debezium to stream database changes into event pipelines without polling

Common Patterns

  • Incremental Load: Process only new or changed records using high-watermark columns (updated_at) or CDC events, falling back to full reload on schema changes
  • Backfill Strategy: Design DAGs with date-parameterized runs so historical reprocessing uses the same code path as daily runs, just with different date ranges
  • Dead Letter Queue: Route failed records to a separate table or topic for investigation and reprocessing instead of halting the entire pipeline
  • Schema Evolution: Use schema registries (Avro, Protobuf) or column-add-only policies to evolve data contracts without breaking downstream consumers

Pitfalls to Avoid

  • Do not perform heavy computation inside Airflow operators; delegate to Spark, dbt, or external compute and use Airflow only for orchestration
  • Do not skip data validation after ingestion; silent schema changes from upstream sources are the most common cause of pipeline failures
  • Do not hardcode connection strings or credentials in pipeline code; use secrets managers and environment-based configuration
  • Do not run full table scans on every pipeline execution when incremental processing is feasible; it wastes compute and increases latency
Câu hỏi thường gặp

Idempotent là gì?

Nghĩa là chạy lại một bước với cùng đầu vào cho cùng kết quả, không có bản trùng hay tác dụng phụ.

ETL hay ELT?

Skill ưu tiên ELT khi kho dữ liệu có thể biến đổi dữ liệu, tức nạp dữ liệu thô trước rồi biến đổi tại chỗ.

Vì sao phân vùng dữ liệu?

Phân vùng cho phép pipeline chỉ xử lý dữ liệu mới và giúp việc backfill dễ quản lý hơn.

Chi tiết

Mô tả gốc của tác giả

Data pipeline expert for ETL, Apache Spark, Airflow, dbt, and data quality

repo: RightNow-AI/openfang

Độ phổ biến

Sao GitHub
18k
Vị trí xếp hạng
#10673
Giấy phép
Apache-2.0
Cập nhật
2/7/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự