[QUESTION] Why does Apache Flink add `org.antlr` to pom.xml

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[QUESTION] Why does Apache Flink add `org.antlr` to pom.xml

Juan Pan
Hi folks,

Excuse me for this help-seeking email. I tried to query the related questions on Stack Overflow and Apache Pony archived emails, but there is no answer there.

From my understanding, Flink parses SQL with the help of JavaCC and Apache calcite. Therefore, why does Flink import Antlr at the same time? For what?

Could anyone give me some hints? Thanks in advance.

Best wishes,
Trista

 Juan Pan (Trista) 
                         
Senior DBA & PPMC of Apache ShardingSphere(Incubating)


Reply | Threaded
Open this post in threaded view
|

Re: [QUESTION] Why does Apache Flink add `org.antlr` to pom.xml

Benchao Li
Hi Juan,

I searched in the repo, and only found two modules contains `org.antlr`:
1, flink-sql-client
2, flink-connector-hive
But they exist only because we need to exclude them from 'hive-exec' dependency.

BTW, where did you find flink importing `org.antlr` ?

Juan Pan <[hidden email]> 于2019年12月29日周日 下午3:07写道:
Hi folks,

Excuse me for this help-seeking email. I tried to query the related questions on Stack Overflow and Apache Pony archived emails, but there is no answer there.

From my understanding, Flink parses SQL with the help of JavaCC and Apache calcite. Therefore, why does Flink import Antlr at the same time? For what?

Could anyone give me some hints? Thanks in advance.

Best wishes,
Trista

 Juan Pan (Trista) 
                         
Senior DBA & PPMC of Apache ShardingSphere(Incubating)




--
Benchao Li
School of Electronics Engineering and Computer Science, Peking University
Tel:+86-15650713730
Email: [hidden email]; [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [QUESTION] Why does Apache Flink add `org.antlr` to pom.xml

Juan Pan
Hi Benchao,

Thanks for your reply, key word `antlr` appeared in three modules of master branch,
1. flink-python
2. flink-sql-client
3. flink-hive-connector

I also found just tag `exclusion` is used for `Antlr`, so the aim of which is to exclude it from 'hive-exec’ dependency, right? That makes sense.

We are exploring Apache Flink and Apache Calcite, very appreciated your prompt reply.

Regards,
Trista.

 Juan Pan (Trista) 
                         
Senior DBA & PPMC of Apache ShardingSphere(Incubating)


On 12/29/2019 15:22[hidden email] wrote:
Hi Juan,

I searched in the repo, and only found two modules contains `org.antlr`:
1, flink-sql-client
2, flink-connector-hive
But they exist only because we need to exclude them from 'hive-exec' dependency.

BTW, where did you find flink importing `org.antlr` ?

Juan Pan <[hidden email]> 于2019年12月29日周日 下午3:07写道:
Hi folks,

Excuse me for this help-seeking email. I tried to query the related questions on Stack Overflow and Apache Pony archived emails, but there is no answer there.

From my understanding, Flink parses SQL with the help of JavaCC and Apache calcite. Therefore, why does Flink import Antlr at the same time? For what?

Could anyone give me some hints? Thanks in advance.

Best wishes,
Trista

 Juan Pan (Trista) 
                         
Senior DBA & PPMC of Apache ShardingSphere(Incubating)




--
Benchao Li
School of Electronics Engineering and Computer Science, Peking University
Tel:+86-15650713730
Email: [hidden email]; [hidden email]