calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Grove <>
Subject Re: Implementing a table that can be queried by index (noob question)
Date Sat, 09 May 2015 17:48:14 GMT
So I discovered AbstractQueryableTable and I seem to be getting a little
further along now.

Calcite is now attempting to compile code and is failing with: Cannot
determine simple type name "Record2_0"

An example of the generated code:

 new org.apache.calcite.linq4j.function.Function2() {
    public Object[] apply(Object[] left, Record2_0 right) {
      return new Object[] {

I can tell that Record2_0 is supposed to be representing one of the tables
in my test, and looking through the Calcite source I can see that this is a
generated "synthetic record type" but I don't see where I'm going wrong
with this.



Andy Grove
Chief Architect
CodeFutures Corporation

On Sat, May 9, 2015 at 11:21 AM, Andy Grove <>

> Hi,
> I'm getting up to speed with Apache Calcite and I'm very impressed so far
> but I'm struggling with the learning curve.
> I'm integrating Calcite into a custom data store and I have a simple demo
> of joins working but this is using table scans.
> I managed to get this far by studying the csv example, but now I want to
> implement support for indexes and it isn't obvious to me how to do this.
> So far I have
> public class MyTable implements ScannableTable, FilterableTable
> I have also implemented getStatistic() to return a statistic that provides
> a RelCollation representing the primary key, but Calcite is calling scan()
> on my table when performing the join.
> I'd appreciate any pointers on this. I could find any documentation so far
> other than the csv example. Does any exist?
> Thanks,
> Andy.
> --
> Andy Grove
> Chief Architect
> CodeFutures Corporation

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message