Hi David,

Have a look at this [1]. I use Calcite's Frameworks class to planner which
can later use to parse, validate and plan SQL queries. I implemented this
base on Apache Drill's query planner. You will have to figure out how to
setup the environment (schemas, operator tables, rules) required to use the
planner. convertToRelNode [2] method converts parsed SQL query to a logical
plan.

Thanks
Milinda


[1]
https://github.com/milinda/samza-sql/blob/master/samza-sql-planner/src/main/java/org/apache/samza/sql/planner/QueryPlanner.java#L95
[2]
https://github.com/milinda/samza-sql/blob/master/samza-sql-planner/src/main/java/org/apache/samza/sql/planner/QueryPlanner.java#L129

On Wed, Jan 20, 2016 at 12:07 PM, Julian Hyde <[email protected]> wrote:

>
> > On Jan 20, 2016, at 9:04 AM, Vladimir Sitnikov <
> [email protected]> wrote:
> >
> >> Calcite’s SQL parser is case-sensitive but converts unquoted
> identifiers to upper-case.
> >
> > That is configurable, isn't it?
>
> Yes. As I said in the following paragraph,
>
> > (There are also connect-string options such as Lex=JAVA [1].)
>
> Julian
>
>


-- 
Milinda Pathirage

PhD Student | Research Assistant
School of Informatics and Computing | Data to Insight Center
Indiana University

twitter: milindalakmal
skype: milinda.pathirage
blog: http://milinda.pathirage.org

Reply via email to