Re: graphql query to sql query with Calcite ?

2018-08-28 Thread Stamatis Zampetakis
Hi Eugen, You can have a look at RelBuilderTest to see how to instantiate a RelBuilder. To create a Calcite Schema you may also take inspiration from the following method: org.apache.calcite.test.CalciteAssert#addSchema Best, Stamatis Στις Τρί, 28 Αυγ 2018 στις 10:31 π.μ., ο/η Eugen Stan

Re: graphql query to sql query with Calcite ?

2018-08-28 Thread Eugen Stan
Hello Julian, Thank you for the pointers. It is very helpful and I have started working on the project. I'm currently discovering Calcite API. Any ideas on where I can find documentation to create an In memory schema so I can pass it to RelBuilder ? I did not find much on the website. I'll use

Re: graphql query to sql query with Calcite ?

2018-08-23 Thread Julian Hyde
I’d call that a "GraphQL front-end for Calcite". (SQL is our main front end, but other front-ends include linq4j and I gather there are other query languages in commercial products, e.g. Stardog uses Calcite to translate SPARQL to SQL[1].) I think this is a good fit for Calcite, and would

graphql query to sql query with Calcite ?

2018-08-21 Thread Eugen Stan
Hello, TLDR: I'm wondering if I can integrate Calcite with [graphql-java] and use Calcite to transform a graphql query into an SQL query and send it directly to the database. Furthermore, I'm curious if I can use Calcite's adapters to emulate an SQL layer on top of other remote services and