{"id":31938952,"url":"https://github.com/aleklukanen/chapterhousedb-example-app","last_synced_at":"2026-04-18T07:34:02.698Z","repository":{"id":260656620,"uuid":"855525589","full_name":"alekLukanen/ChapterhouseDB-example-app","owner":"alekLukanen","description":"An example application using the ChapterhouseDB processing engine","archived":false,"fork":false,"pushed_at":"2025-05-10T15:32:03.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T19:58:19.699Z","etag":null,"topics":["arrow","data","database","event","golang","parquet","processing","stream"],"latest_commit_sha":null,"homepage":"","language":"Go","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/alekLukanen.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":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-11T02:27:31.000Z","updated_at":"2025-07-02T03:47:19.000Z","dependencies_parsed_at":"2024-11-01T16:52:05.581Z","dependency_job_id":"1b37e7a5-b7ff-491f-9656-77892b0679a4","html_url":"https://github.com/alekLukanen/ChapterhouseDB-example-app","commit_stats":null,"previous_names":["aleklukanen/chapterhousedb-example-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alekLukanen/ChapterhouseDB-example-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekLukanen%2FChapterhouseDB-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekLukanen%2FChapterhouseDB-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekLukanen%2FChapterhouseDB-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekLukanen%2FChapterhouseDB-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alekLukanen","download_url":"https://codeload.github.com/alekLukanen/ChapterhouseDB-example-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekLukanen%2FChapterhouseDB-example-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31961345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["arrow","data","database","event","golang","parquet","processing","stream"],"created_at":"2025-10-14T08:19:41.676Z","updated_at":"2026-04-18T07:34:02.679Z","avatar_url":"https://github.com/alekLukanen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChapterhouseDB Example App\n\nA simple example app that demonstrates how to use ChapterhouseDB.\n\n## Setup\n\nIn my case I have a cluster of two Raspberry PI computers with host names `pi0` and `pi1`.\nThe deployments rely on having two nodes in your Kubernetes cluster. If you wish to change\nthe preferred host names you can change the `preferredHostname` for each of the deployments\nin the `helm-deploy/chdb-ex/values.yaml` file. You will also need to change the container \nregistry in the `Tiltfile` file to match the container registry you are using. Change\nall occurrences of `pi0:30000` to your container registry.\n\nAfter making the necessary changes you can run\n```\ntilt up\n```\nThis will deploy the example application to your Kubernetes cluster.\n\n## View Images in Container Registry\n\nYou can view the images in the given registry by using a url like this\n```\nhttp://pi0:30000/v2/_catalog\n```\n\n## Querying Local Files With DuckDB\n```sql\ncreate secret locals3mock3 (\n  TYPE S3,\n  KEY_ID \"minioadmin\",\n  SECRET \"minioadmin\",\n  ENDPOINT \"pi0:30006\",\n  URL_STYLE \"path\",\n  USE_SSL false\n);\n\nselect * from 's3://chdb-test-warehouse/chdb/table-state/part-data/table1/0/d_2_0.parquet';\n```\n\nValidate that there aren't any duplicates\n```sql\nselect column1, count(*) num_items from 's3://chdb-test-warehouse/chdb/table-state/part-data/table1/*/*.parquet' group by column1 having count(*) \u003e 1 order by column1;\n```\n\nSummary statistics\n```sql\nselect count(*) count, sum(column1) sum, max(column1) max, min(column1) min from 's3://chdb-test-warehouse/chdb/table-state/part-data/table1/*/*.parquet';\n```\n\n## List Files in S3Mock\n```bash\nAWS_ACCESS_KEY_ID=\"key\" AWS_SECRET_ACCESS_KEY=\"secret\" aws --endpoint-url http://localhost:9090 s3 ls s3://default/ --recursive\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleklukanen%2Fchapterhousedb-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleklukanen%2Fchapterhousedb-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleklukanen%2Fchapterhousedb-example-app/lists"}