osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calcite example code


Michael,

I would definitely encourage you and anyone else to participate. That is an
awesome idea, especially sometimes there are multiple ways to do the same
thing. For example, instantiating a RelNode converter can be done by the
planner or by constructing everything by hand. Similarly adding schemas can
be done programmatically or by model files. Pointing out the situations of
when to use each solution would be a great addition to this.

Thanks,
Walaa.

On Wed, Dec 19, 2018 at 10:53 AM Michael Mior <mmior@xxxxxxxxxx> wrote:

> After seeing so many people ask for example code to do certain basic things
> in Calcite, I've been trying to find a good literate programming solution
> for Java as I like this approach for demoing. I recently came across the
> IJava (https://github.com/SpencerPark/IJava) kernel for Jupyter notebooks.
>
> This is basically just a proof of concept at this point, but here's a
> simple example
>
>
> https://github.com/michaelmior/calcite-notebooks/blob/master/Query%20parsing.ipynb
>
> I'm curious what others think of this approach. If others think it would be
> useful, I'd be happy to take suggestions on what should be included.
> Eventually, I'd like to get CI set up for this repository so I can re-run
> the notebooks at will. I would then aim to check this on every release so
> we can have a repository of code samples which we know run correctly.
>
> --
> Michael Mior
> mmior@xxxxxxxxxx
>