Hi Hugo,
I am not an expert of Calcite but recently I have integrate the "only"
Planner in my project.

You have at least to implement your "Table" and you can use the
EnumerableConvention to build a plan

See for example this code:

https://github.com/diennea/herddb/blob/a764d77aaa4864b8ced16b051bd130217cb2aca0/herddb-core/src/main/java/herddb/sql/CalcitePlanner.java#L379




Hope that helps
Enrico



2017-12-18 12:37 GMT+01:00 Hugo Gonçalves <[email protected]>:

> Hi there,
>
> I'm a software engineering student at University of Minho in Portugal,
> working on my master's dissertation. I've been trying to understand how
> Calcite works in order to use it as a simple query planner. What I mean by
> this is I want Calcite to receive a SQL query, parse it into logical
> operator tree and optimize the plan, but not convert it to a physical plan,
> since the execution of the query should be done elsewhere.
>
> Is this possible in any way? So far, from what I could dig up, the schema
> and driver are essential, and Calcite won't optimize plans if I don't
> provide them.
>
> I've been using the Planner utility provided in the Tools package but I
> don't know if that's the best way to achieve this. If you'd like I can
> provide what I have in terms of code.
>
> Thanks in advance,
>
> ----
> Hugo Gonçalves
>
> Student number A70363
> Integrated Masters on Software Engineering
> University of Minho, Portugal
>

Reply via email to