wangyum commented on issue #23970: [SPARK-27054][BUILD][SQL] Remove the Calcite 
dependency
URL: https://github.com/apache/spark/pull/23970#issuecomment-469979458
 
 
   @HyukjinKwon 
   `addJar` uses 
[`AddResourceProcessor`](https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/processors/AddResourceProcessor.java).
 This do not need Calcite.
   For queries such as 
select([`TOK_QUERY`](https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g#L31)),
 create 
table([`TOK_CREATETABLE`](https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g#L136)),
 etc., Calcite is needed if enable CBO:
   
https://github.com/apache/hive/blob/release-1.2.1/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java#L277-L282

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to