{"id":26544947,"url":"https://github.com/quackscience/duckdb-extension-clickhouse-system","last_synced_at":"2026-03-10T16:10:08.135Z","repository":{"id":270899851,"uuid":"911769659","full_name":"quackscience/duckdb-extension-clickhouse-system","owner":"quackscience","description":"DuckDB Community Extension emulating the ClickHouse system table","archived":false,"fork":false,"pushed_at":"2025-01-04T18:52:15.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T15:55:16.012Z","etag":null,"topics":["chsql","clickhouse","duckdb","duckdb-extension","sql"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quackscience.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}},"created_at":"2025-01-03T20:03:12.000Z","updated_at":"2025-01-08T16:01:38.000Z","dependencies_parsed_at":"2025-01-04T00:33:42.768Z","dependency_job_id":null,"html_url":"https://github.com/quackscience/duckdb-extension-clickhouse-system","commit_stats":null,"previous_names":["lmangani/duckdb-extension-clickhouse-system","quackscience/duckdb-extension-clickhouse-system"],"tags_count":0,"template":false,"template_full_name":"duckdb/extension-template","purl":"pkg:github/quackscience/duckdb-extension-clickhouse-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-clickhouse-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-clickhouse-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-clickhouse-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-clickhouse-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quackscience","download_url":"https://codeload.github.com/quackscience/duckdb-extension-clickhouse-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackscience%2Fduckdb-extension-clickhouse-system/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263108812,"owners_count":23415006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chsql","clickhouse","duckdb","duckdb-extension","sql"],"created_at":"2025-03-22T04:15:06.538Z","updated_at":"2026-03-10T16:10:08.027Z","avatar_url":"https://github.com/quackscience.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://community-extensions.duckdb.org/extensions/chsql.html\" target=\"_blank\"\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/9003897d-db6f-4a79-9443-9b72766b511b\" width=200\u003e\n\u003c/a\u003e\n\n# DuckDB Clickhouse System Table emulator for [chsql](https://github.com/quackscience/duckdb-extension-clickhouse-sql)\n\n\u003e This project loosely emulates ClickHouse system tables within DuckDB for client compatibility\n\nThe `chsql_system` extension provides a subset of system functions:\n\n### Table Views\n- [x] `system.databases`\n- [x] `system.tables`\n- [x] `system.columns`\n- [x] `system.functions`\n- [x] `system.uptime`\n- [x] `system.disks`\n### Scalar\n- [x] `uptime()`\n\n\n## Installation\n\n\u003e coming soon\n\n## Usage\n```sql\nD -- List all databases in scope\nD SELECT * FROM system.databases;\n┌─────────┬─────────┬───────────┬───────────────┬──────────────────────────────────────┬─────────────┬─────────┐\n│  name   │ engine  │ data_path │ metadata_path │                 uuid                 │ engine_full │ comment │\n│ varchar │ varchar │  varchar  │    varchar    │                 uuid                 │   varchar   │ varchar │\n├─────────┼─────────┼───────────┼───────────────┼──────────────────────────────────────┼─────────────┼─────────┤\n│ memory  │ duckdb  │ NULL      │               │ 80000000-0000-0000-0000-000000000000 │ DuckDB      │ NULL    │\n│ test    │ duckdb  │ test.db   │               │ 80000000-0000-0000-0000-000000000000 │ DuckDB      │ NULL    │\n│ system  │ duckdb  │ NULL      │               │ 80000000-0000-0000-0000-000000000000 │ DuckDB      │ NULL    │\n│ temp    │ duckdb  │ NULL      │               │ 80000000-0000-0000-0000-000000000000 │ DuckDB      │ NULL    │\n└─────────┴─────────┴───────────┴───────────────┴──────────────────────────────────────┴─────────────┴─────────┘\n\nD -- List all tables in scope\nD SELECT * FROM system.tables;\n┌──────────┬──────────────┬──────────────────────────────────────┬────────────┬──────────────┬───────────┬───────────────┬────────────────────────────┬──────────────────┬────────────────────────────────────────┐\n│ database │     name     │                 uuid                 │   engine   │ is_temporary │ data_path │ metadata_path │ metadata_modification_time │ metadata_version │           create_table_query           │\n│ varchar  │   varchar    │                 uuid                 │  varchar   │   boolean    │  varchar  │    varchar    │         timestamp          │      int32       │                varchar                 │\n├──────────┼──────────────┼──────────────────────────────────────┼────────────┼──────────────┼───────────┼───────────────┼────────────────────────────┼──────────────────┼────────────────────────────────────────┤\n│ test     │ remote_table │ 80000000-0000-0000-0000-000000000000 │ BASE TABLE │ false        │           │               │ 1970-01-01 00:00:00        │                0 │ CREATE TABLE remote_table(id INTEGER); │\n└──────────┴──────────────┴──────────────────────────────────────┴────────────┴──────────────┴───────────┴───────────────┴────────────────────────────┴──────────────────┴────────────────────────────────────────┘\n \nD -- List all columns in scope\nD SELECT * FROM system.columns;\n┌──────────┬───────────┬────────────────────────────┬───────────┬──────────┬─────────┐\n│ database │   table   │            name            │   type    │ position │ comment │\n│ varchar  │  varchar  │          varchar           │  varchar  │  int32   │ varchar │\n├──────────┼───────────┼────────────────────────────┼───────────┼──────────┼─────────┤\n│ memory   │ columns   │ database                   │ VARCHAR   │        0 │         │\n│ memory   │ columns   │ table                      │ VARCHAR   │        1 │         │\n│ memory   │ columns   │ name                       │ VARCHAR   │        2 │         │\n│ memory   │ columns   │ type                       │ VARCHAR   │        3 │         │\n│ memory   │ columns   │ position                   │ INTEGER   │        4 │         │\n│ memory   │ columns   │ comment                    │ VARCHAR   │        5 │         │\n│ memory   │ databases │ name                       │ VARCHAR   │        0 │         │\n│ memory   │ databases │ engine                     │ VARCHAR   │        1 │         │\n│ memory   │ databases │ data_path                  │ VARCHAR   │        2 │         │\n│ memory   │ databases │ metadata_path              │ VARCHAR   │        3 │         │\n│ memory   │ databases │ uuid                       │ UUID      │        4 │         │\n│ memory   │ databases │ engine_full                │ VARCHAR   │        5 │         │\n│ memory   │ databases │ comment                    │ VARCHAR   │        6 │         │\n│ memory   │ functions │ name                       │ VARCHAR   │        0 │         │\n│ memory   │ functions │ is_aggregate               │ BOOLEAN   │        1 │         │\n│ memory   │ functions │ case_insensitive           │ BOOLEAN   │        2 │         │\n│ memory   │ functions │ description                │ VARCHAR   │        3 │         │\n│ memory   │ tables    │ database                   │ VARCHAR   │        0 │         │\n│ memory   │ tables    │ name                       │ VARCHAR   │        1 │         │\n│ memory   │ tables    │ uuid                       │ UUID      │        2 │         │\n│ memory   │ tables    │ engine                     │ VARCHAR   │        3 │         │\n│ memory   │ tables    │ is_temporary               │ BOOLEAN   │        4 │         │\n│ memory   │ tables    │ data_path                  │ VARCHAR   │        5 │         │\n│ memory   │ tables    │ metadata_path              │ VARCHAR   │        6 │         │\n│ memory   │ tables    │ metadata_modification_time │ TIMESTAMP │        7 │         │\n│ memory   │ tables    │ metadata_version           │ INTEGER   │        8 │         │\n│ memory   │ tables    │ create_table_query         │ VARCHAR   │        9 │         │\n├──────────┴───────────┴────────────────────────────┴───────────┴──────────┴─────────┤\n│ 27 rows                                                                  6 columns │\n└────────────────────────────────────────────────────────────────────────────────────┘\n\n \nD -- List all functions in scope\nD SELECT * FROM system.functions;\n┌──────────────────────────────────────────┬──────────────┬──────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐\n│                   name                   │ is_aggregate │ case_insensitive │                                                                   description                                                                   │\n│                 varchar                  │   boolean    │     boolean      │                                                                     varchar                                                                     │\n├──────────────────────────────────────────┼──────────────┼──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ test_all_types                           │ false        │ false            │ NULL                                                                                                                                            │\n│ pragma_version                           │ false        │ false            │ NULL                                                                                                                                            │\n│ duckdb_sequences                         │ false        │ false            │ NULL                                                                                                                                            │\n│ duckdb_functions                         │ false        │ false            │ NULL                                                                                                                                            │\n│ duckdb_extensions                        │ false        │ false            │ NULL                                                                                                                                            │\n│ duckdb_constraints                       │ false        │ false            │ NULL                                                                                                                                            │\n│ system_columns                           │ false        │ false            │ NULL                                                                                                                                            │                         │\n│  ·                                       │   ·          │   ·              │  ·                                                                                                                                              │\n│  ·                                       │   ·          │   ·              │  ·                                                                                                                                              │\n│  ·                                       │   ·          │   ·              │  ·                                                                                                                                              │\n│ format_type                              │ false        │ false            │ NULL                                                                                                                                            │\n│ has_column_privilege                     │ false        │ false            │ NULL                                                                                                                                            │\n│ inet_client_port                         │ false        │ false            │ NULL                                                                                                                                            │\n├──────────────────────────────────────────┴──────────────┴──────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤\n│ 692 rows (40 shown)                                                                                                                                                                                                4 columns │\n└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘\n\nD -- List all attached databases and blocks as disks\nD SELECT * FROM system.disks;\n┌──────────┬──────────────┬────────────┬─────────────┬──────────────────┬─────────────────┬─────────┬─────────────────────┬───────────────┬──────────────┬──────────────┬───────────────┬───────────┬───────────┬────────────┐\n│   name   │     path     │ free_space │ total_space │ unreserved_space │ keep_free_space │  type   │ object_storage_type │ metadata_type │ is_encrypted │ is_read_only │ is_write_once │ is_remote │ is_broken │ cache_path │\n│ varchar  │   varchar    │   int64    │    int64    │      int64       │      int64      │ varchar │       varchar       │    varchar    │   boolean    │   boolean    │    boolean    │  boolean  │  boolean  │  varchar   │\n├──────────┼──────────────┼────────────┼─────────────┼──────────────────┼─────────────────┼─────────┼─────────────────────┼───────────────┼──────────────┼──────────────┼───────────────┼───────────┼───────────┼────────────┤\n│ localdb  │ test.db      │          0 │      262144 │                0 │               0 │ Local   │ None                │ None          │ false        │ false        │ false         │ false     │ false     │            │\n│ memory   │ NULL         │          0 │           0 │                0 │               0 │ Local   │ None                │ None          │ false        │ false        │ false         │ false     │ false     │            │\n│ testduck │ /tmp/duck.db │     262144 │      786432 │           262144 │               0 │ Local   │ None                │ None          │ false        │ false        │ false         │ false     │ false     │            │\n└──────────┴──────────────┴────────────┴─────────────┴──────────────────┴─────────────────┴─────────┴─────────────────────┴───────────────┴──────────────┴──────────────┴───────────────┴───────────┴───────────┴────────────┘\n```\n\n### Note\nDon't use this unless you need ClickHouse client compatibility. Rely on pure DuckDB functions to build your applications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackscience%2Fduckdb-extension-clickhouse-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquackscience%2Fduckdb-extension-clickhouse-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackscience%2Fduckdb-extension-clickhouse-system/lists"}