{"id":47705685,"url":"https://github.com/polardb/duckdb-paimon","last_synced_at":"2026-04-19T11:01:37.325Z","repository":{"id":344720361,"uuid":"1170581646","full_name":"polardb/duckdb-paimon","owner":"polardb","description":"DuckDB extension for accessing Apache Paimon. 🦆","archived":false,"fork":false,"pushed_at":"2026-04-15T10:03:03.000Z","size":258,"stargazers_count":24,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T12:07:08.199Z","etag":null,"topics":["datalake","duckdb","paimon"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polardb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-02T09:33:29.000Z","updated_at":"2026-04-15T10:03:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/polardb/duckdb-paimon","commit_stats":null,"previous_names":["polardb/duckdb-paimon"],"tags_count":4,"template":false,"template_full_name":"duckdb/extension-template","purl":"pkg:github/polardb/duckdb-paimon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polardb%2Fduckdb-paimon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polardb%2Fduckdb-paimon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polardb%2Fduckdb-paimon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polardb%2Fduckdb-paimon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polardb","download_url":"https://codeload.github.com/polardb/duckdb-paimon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polardb%2Fduckdb-paimon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32004043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datalake","duckdb","paimon"],"created_at":"2026-04-02T17:56:47.460Z","updated_at":"2026-04-19T11:01:37.271Z","avatar_url":"https://github.com/polardb.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DuckDB Paimon Extension 🦆\n\nThis extension enables [DuckDB](https://duckdb.org/) to read and query [Apache Paimon](https://paimon.apache.org/) format data directly — no ETL pipelines, no Flink/Spark clusters required. Just open a DuckDB shell and run SQL against your Paimon tables.\n\nSimilar to other extension, duckdb-paimon brings DuckDB's powerful local analytics to the Paimon data lake ecosystem.\n\n## About Apache Paimon\n\n[Apache Paimon](https://paimon.apache.org/) is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations. It innovatively combines lake format and LSM structure, bringing realtime streaming updates into the lake architecture.\n\n## Implementation\n\nThis extension is built on top of [paimon-cpp](https://github.com/alibaba/paimon-cpp), an open-source C++ library that provides native access to Paimon format data. It is the first library that brings native Paimon read/write capabilities to the C++ ecosystem.\n\n### Technical Highlights\n\n- **Zero JVM dependency** — No Java runtime required. Pure C++ implementation means minimal memory footprint and instant startup.\n- **Apache Arrow data exchange** — Data flows between paimon-cpp and DuckDB via Apache Arrow, the industry standard for columnar in-memory data, enabling zero-copy transfers with no serialization overhead.\n- **Parallel scan architecture** — Paimon tables are split into independent Splits, and DuckDB's multi-threaded execution engine reads them in parallel to fully utilize multi-core CPUs.\n- **Secure credential management** — OSS credentials are managed through DuckDB's native Secret Manager with scope isolation and automatic key redaction.\n\n## Features\n\n- Read Paimon table data (local and remote OSS)\n- Projection pushdown optimization\n- Multiple file format support (Parquet data files, ORC manifest files)\n- Catalog ATTACH support\n- DuckDB Secret-based OSS credential management\n\n## Use Cases\n\n### Lightweight Ad-hoc Queries on Realtime Lakehouses\n\nData is written into Paimon by Flink in real time. Analysts can query it directly on OSS using DuckDB + duckdb-paimon — **no compute cluster needed**, reducing query latency from minutes to seconds.\n\n### Data Validation \u0026 Quality Checks\n\nUse DuckDB in CI/CD pipelines to run data quality assertions on Paimon tables, verifying that Flink job outputs meet expectations. Lightweight, fast, and dependency-free.\n\n### Data Exploration \u0026 Debugging\n\nData engineers developing Flink jobs can instantly inspect the current state of Paimon tables using DuckDB Shell, quickly locating data issues — far more efficient than launching a Flink SQL Client.\n\n### Cross-format Federated Queries\n\nDuckDB natively supports Parquet, CSV, JSON, Iceberg, and more. Combined with duckdb-paimon, you can JOIN Paimon tables with other data sources without any data movement:\n\n```sql\n-- Join a Paimon orders table with a local CSV dimension table\nSELECT o.order_id, o.amount, c.customer_name\nFROM paimon_scan('oss://...', 'db', 'orders') o\nJOIN read_csv('customers.csv') c ON o.customer_id = c.id;\n```\n\n## Getting Started\n\nClone the repository:\n\n```shell\ngit clone --recurse-submodules https://github.com/polardb/duckdb-paimon.git\ncd duckdb-paimon\n```\n\nNote that `--recurse-submodules` will ensure DuckDB and paimon-cpp are pulled which are required to build the extension.\n\n### Building\n\n```shell\nGEN=ninja make\n```\n\n### Running the Extension\n\nTo run the extension code, simply start the shell with `./build/release/duckdb`. This shell will have the extension pre-loaded.\n\nNow we can use the features from the extension directly in DuckDB:\n\n#### Query Local Paimon Tables\n\n```sql\nSELECT * FROM paimon_scan('./data/testdb.db/testtbl');\n┌─────────┬───────┬───────┬────────┐\n│   f0    │  f1   │  f2   │   f3   │\n│ varchar │ int32 │ int32 │ double │\n├─────────┼───────┼───────┼────────┤\n│ Alice   │     1 │     0 │   11.0 │\n│ Bob     │     1 │     1 │   12.1 │\n│ Cathy   │     1 │     2 │   13.2 │\n│ David   │     2 │     0 │   21.0 │\n│ Eve     │     2 │     1 │   22.1 │\n│ Frank   │     2 │     2 │   23.2 │\n│ Grace   │     3 │     0 │   31.0 │\n│ Henry   │     3 │     1 │   32.1 │\n│ Iris    │     3 │     2 │   33.2 │\n└─────────┴───────┴───────┴────────┘\n```\n\n#### Query Remote OSS Paimon Tables\n\n```sql\n-- Configure OSS credentials\nCREATE SECRET my_oss (\n    TYPE paimon,\n    key_id 'your-access-key-id',\n    secret 'your-access-key-secret',\n    endpoint 'oss-cn-hangzhou.aliyuncs.com'\n);\n\n-- Query Paimon tables on OSS\nSELECT * FROM paimon_scan('oss://your-bucket/warehouse', 'your_db', 'your_table');\n```\n\n#### Attach as Catalog\n\n```sql\nATTACH 'oss://my-bucket/warehouse' AS paimon_lake (TYPE paimon);\n\nSHOW ALL TABLES;\nDESCRIBE paimon_lake.sales_db.orders;\n```\n\n### Running the Tests\n\n```shell\nmake test\n```\n\n## Related Projects\n\n- **[Apache Paimon](https://paimon.apache.org/)** — Realtime lakehouse format\n- **[paimon-cpp](https://github.com/alibaba/paimon-cpp)** — Native C++ library for Paimon (underlying dependency)\n- **[DuckDB](https://duckdb.org/)** — Embeddable OLAP database\n- **[duckdb-iceberg](https://github.com/duckdb/duckdb_iceberg)** — DuckDB's official Iceberg extension\n\n## Join the Community\n\nWe welcome contributions and discussions! If you have questions, ideas, or want to connect with other users and developers, join our community by clicking [here](https://qr.dingtalk.com/action/joingroup?code=v1,k1,xL7wNtAi3J83o8gW/R+2vl0twZAzSwohxbXwCwQG6v8=\u0026_dt_no_comment=1\u0026origin=11) or scan the QR code below:\n\n\u003cimg src=\"./docs/group-qrcode.png\" alt=\"DingTalk Group QR Code\" width=\"240\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolardb%2Fduckdb-paimon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolardb%2Fduckdb-paimon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolardb%2Fduckdb-paimon/lists"}