You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Dmitry Sysolyatin <dm...@gmail.com> on 2022/09/19 09:59:25 UTC

Parsing PostgreSQL related operators (BEGIN, DISCARD, SHOW TRANSACTION ISOLATION)

Hi!
Babel parser can't parse operators like BEGIN, DISCARD, SHOW TRANSACTION
ISOLATION LEVEL and a bunch of other PostgreSQL related operators. I want
to add support for those operators but I have a feeling that babel parser
is not the right place for that. Maybe it is worth it to create a separate
project like `babel-postgres` and extend babel parser ?

What do you think?

Re: Parsing PostgreSQL related operators (BEGIN, DISCARD, SHOW TRANSACTION ISOLATION)

Posted by Julian Hyde <jh...@gmail.com>.
Can you elaborate on why Babel is not the right place?

(I don’t agree or disagree, but we need to hear justification. Creating another parser would have continuing maintenance cost.)

Julian


> On Sep 19, 2022, at 2:59 AM, Dmitry Sysolyatin <dm...@gmail.com> wrote:
> 
> Hi!
> Babel parser can't parse operators like BEGIN, DISCARD, SHOW TRANSACTION
> ISOLATION LEVEL and a bunch of other PostgreSQL related operators. I want
> to add support for those operators but I have a feeling that babel parser
> is not the right place for that. Maybe it is worth it to create a separate
> project like `babel-postgres` and extend babel parser ?
> 
> What do you think?