calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yishu_Coder Lin <yishutheco...@gmail.com>
Subject Re: Parser failed for 'select top 10 * from A;'
Date Mon, 17 Apr 2017 23:58:30 GMT
Hi Julian,

Thanks for the advise! What is the engine to parse Parser.jj? Where can I
find the document to learn how to use it?

Best,
Yishu

On Mon, Apr 17, 2017 at 4:55 PM, Julian Hyde <jhyde@apache.org> wrote:

> Sure, you could change the parser. I suggest you add a few tests to
> SqlParserTest and then change Parser.jj until the tests pass. You could
> then translate your query to the same as RelNode tree as “select * from A
> limit 10”, and Calcite can execute that.
>
> Log a JIRA case describing the syntax you intend to implement.
>
> Julian
>
>
> > On Apr 17, 2017, at 4:46 PM, Yishu_Coder Lin <yishuthecoder@gmail.com>
> wrote:
> >
> > Hi guys,
> >
> > I just started to use Calcite's SQL parser. I am working on a project
> > related to Teradata and I found calcite doesn't support SQL syntax like
> > 'select top 10 * from A'.
> >
> > Is there anyway that I can change the parser to support syntax like this?
> > Please advise. Thanks!
> >
> > Regards,
> > Yishu
>
>

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