Login  Register

Re: Use of ANTLR instead of CarbonSqlParser

Posted by Jacky Li on Nov 07, 2016; 1:29am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/Use-of-ANTLR-instead-of-CarbonSqlParser-tp2633p2685.html

Hi,

It is because CarbonData currently is integrated with Spark 1.5/1.6 and CarbonContext is based on HiveContext, so it is based on the Hive parser in HiveContext. But you are right, there is no design limitation about this, Carbon can switch to use ANTLR. I see in Spark 2.0, spark is using ANTLR as well. So maybe it is a good time to switch the parser when doing integration with Spark 2.0.
What is your idea?

Regards,
Jacky


> 在 2016年11月4日,下午3:47,Anurag Srivastava <[hidden email]> 写道:
>
> Hi,
>
> We are using CarbonSqlParser for parsing the queries but we can use ANTLR
> for the same.
>
> Is there any specific reason for using CarbonSqlParser because as per my
> concern we could better handle with ANTLR.
>
>
> --
> *Thanks&regards*
>
>
> *Anurag Srivastava**Software Consultant*
> *Knoldus Software LLP*
>
> *India - US - Canada*
> * Twitter <http://www.twitter.com/anuragknoldus> | FB
> <http://www.facebook.com/anuragsrivastava.06> | LinkedIn
> <https://in.linkedin.com/pub/anurag-srivastava/5a/b6/441>*