Skip to main content

Subtrait compiler forked from ibis-substrait

Project description

Ibis Skytether

A project, forked from ibis-substrait, that uses Ibis to create query plans using Substrait.

This fork is for myself to iterate a bit quicker while still developing with appropriate packages.

Usage

>>> import ibis

>>> t = ibis.table(
    [("a", "string"), ("b", "float"), ("c", "int32"), ("d", "int64"), ("e", "int64")],
    "t",
)

>>> expr = t.group_by(["a", "b"]).aggregate([t.c.sum().name("sum")]).select("b", "sum")
>>> expr
r0 := UnboundTable: t
  a string
  b float64
  c int32
  d int64
  e int64

r1 := Aggregation[r0]
  metrics:
    sum: Sum(r0.c)
  by:
    a: r0.a
    b: r0.b

Selection[r1]
  selections:
    b:   r1.b
    sum: r1.sum


>>> from ibis_substrait.compiler.core import SubstraitCompiler
>>> compiler = SubstraitCompiler()
>>> proto    = compiler.compile(expr)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ibis_skytether-0.1.1.tar.gz (101.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ibis_skytether-0.1.1-py3-none-any.whl (121.6 kB view details)

Uploaded Python 3

File details

Details for the file ibis_skytether-0.1.1.tar.gz.

File metadata

  • Download URL: ibis_skytether-0.1.1.tar.gz
  • Upload date:
  • Size: 101.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.30

File hashes

Hashes for ibis_skytether-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ef387f513159b447fa45d4ac713a555e5c1a22e313e6789abb8de9a99cea1543
MD5 a92b3fb78f63a221b457361b3bf514a5
BLAKE2b-256 04d571523fd243744d3607292b80f69d72dc1b9b990716b0aa5674ba53d870b1

See more details on using hashes here.

File details

Details for the file ibis_skytether-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ibis_skytether-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d57e7415d4a7602ff075f3a23b18460e8d681668d3d65233d970454579d706d8
MD5 b2f878d3e533744b7d61bb6c19df1a20
BLAKE2b-256 0feef18ce9c34869df2b3c50bfb6c84d1ef79b3f16d1da2e05cfedf32970678a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page