Re: Integration between ibis-substrait and Acero

2022-10-05 Thread Will Jones
t; >> >> >> >> >> t = ibis.table([("a", "int64"), ("b", "int64")], name="table0") >> >> result = translate(t.group_by("a").mutate(z = t.b.sum()), compiler) >> >> >> >> def tab

Re: Integration between ibis-substrait and Acero

2022-10-05 Thread Will Jones
uffer(result_bytes), table_provider) > >> > >> Best, > >> > >> Will Jones > >> > >> On Tue, Oct 4, 2022 at 12:30 PM Li Jin wrote: > >> > >> > For reference, this is the "relations" entry that I was referring to: > >

Re: Integration between ibis-substrait and Acero

2022-10-05 Thread Li Jin
quot;, "int64"), ("b", "int64")], >> name="table0") >> > > >> > > test_table_0 = pa.Table.from_pydict({"a": [1, 2, 3], "b": [4, >> 5, >> > > 6]}) >> > > >>

Re: Integration between ibis-substrait and Acero

2022-10-05 Thread Li Jin
if not names: > > > > > > raise Exception("No names provided") > > > > > > elif names[0] == 'table0': > > > > > > return test_table_0 > > > > > > else: &

Re: Integration between ibis-substrait and Acero

2022-10-05 Thread Will Jones
rovider) > > > > I think now the plan is passed properly and I got a "ArrowInvalid: Empty > > substrait plan is passed" > > > > > > Looking the plan reproduces by ibis-substrait, it looks like doesn't > match > > the expected format of Acero cons

Re: Integration between ibis-substrait and Acero

2022-10-04 Thread Li Jin
y ibis-substrait doesn't have a "relations" entry - any > thoughts on how this can be fixed? (I don't know if I am using the API > wrong or some format inconsistency between the two) > > On Tue, Oct 4, 2022 at 1:54 PM Li Jin wrote: > >> Hi, >> >> I am

Re: Integration between ibis-substrait and Acero

2022-10-04 Thread Li Jin
w if I am using the API wrong or some format inconsistency between the two) On Tue, Oct 4, 2022 at 1:54 PM Li Jin wrote: > Hi, > > I am testing integration between ibis-substrait and Acero but hit a > segmentation fault. I think this might be cause the way I am > integrating thes

Integration between ibis-substrait and Acero

2022-10-04 Thread Li Jin
Hi, I am testing integration between ibis-substrait and Acero but hit a segmentation fault. I think this might be cause the way I am integrating these two libraries are wrong, here is my code: Li Jin 1:51 PM (1 minute ago) to me class BasicTests(unittest.TestCase): """Test