{"id":18435708,"url":"https://github.com/ibis-project/ibis-substrait","last_synced_at":"2025-05-16T10:05:46.774Z","repository":{"id":37253113,"uuid":"449317324","full_name":"ibis-project/ibis-substrait","owner":"ibis-project","description":"Ibis Substrait Compiler","archived":false,"fork":false,"pushed_at":"2025-05-09T22:02:09.000Z","size":2510,"stargazers_count":102,"open_issues_count":24,"forks_count":22,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-09T23:18:49.783Z","etag":null,"topics":["analytics","compiler","expressions","ibis","relational-algebra","substrait"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ibis-project.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2022-01-18T14:29:25.000Z","updated_at":"2025-04-25T17:36:37.000Z","dependencies_parsed_at":"2024-02-02T03:25:35.835Z","dependency_job_id":"28d640a5-d30b-4d9f-812d-62e59acb8b68","html_url":"https://github.com/ibis-project/ibis-substrait","commit_stats":{"total_commits":1211,"total_committers":19,"mean_commits":63.73684210526316,"dds":0.5491329479768786,"last_synced_commit":"0cb992380f817554b5e19d9e810bef0d7004f929"},"previous_names":[],"tags_count":67,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibis-project%2Fibis-substrait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibis-project%2Fibis-substrait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibis-project%2Fibis-substrait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibis-project%2Fibis-substrait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibis-project","download_url":"https://codeload.github.com/ibis-project/ibis-substrait/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253337228,"owners_count":21892847,"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":["analytics","compiler","expressions","ibis","relational-algebra","substrait"],"created_at":"2024-11-06T06:09:07.046Z","updated_at":"2025-05-16T10:05:46.751Z","avatar_url":"https://github.com/ibis-project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Ibis](https://ibis-project.org) + [Substrait](https://substrait.io)\n\nThis repo houses the Substrait compiler for ibis.\n\nWe're just getting started here, so stay tuned!\n\n# Usage\n\n```python\n\u003e\u003e\u003e import ibis\n\n\u003e\u003e\u003e t = ibis.table(\n    [(\"a\", \"string\"), (\"b\", \"float\"), (\"c\", \"int32\"), (\"d\", \"int64\"), (\"e\", \"int64\")],\n    \"t\",\n)\n\n\u003e\u003e\u003e expr = t.group_by([\"a\", \"b\"]).aggregate([t.c.sum().name(\"sum\")]).select(\"b\", \"sum\")\n\u003e\u003e\u003e expr\nr0 := UnboundTable: t\n  a string\n  b float64\n  c int32\n  d int64\n  e int64\n\nr1 := Aggregation[r0]\n  metrics:\n    sum: Sum(r0.c)\n  by:\n    a: r0.a\n    b: r0.b\n\nSelection[r1]\n  selections:\n    b:   r1.b\n    sum: r1.sum\n\n\n\u003e\u003e\u003e ibis.show_sql(expr)\nSELECT\n  t0.b,\n  t0.sum\nFROM (\n  SELECT\n    t1.a AS a,\n    t1.b AS b,\n    SUM(t1.c) AS sum\n  FROM t AS t1\n  GROUP BY\n    t1.a,\n    t1.b\n) AS t0\n\n\u003e\u003e\u003e from ibis_substrait.compiler.core import SubstraitCompiler\n\n\u003e\u003e\u003e compiler = SubstraitCompiler()\n\n\u003e\u003e\u003e proto = compiler.compile(expr)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibis-project%2Fibis-substrait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibis-project%2Fibis-substrait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibis-project%2Fibis-substrait/lists"}