[ 
https://issues.apache.org/jira/browse/DRILL-5978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367720#comment-16367720
 ] 

ASF GitHub Bot commented on DRILL-5978:
---------------------------------------

Github user vdiravka commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1111#discussion_r167945192
  
    --- Diff: common/pom.xml ---
    @@ -45,6 +45,7 @@
         <dependency>
           <groupId>org.apache.calcite</groupId>
           <artifactId>calcite-core</artifactId>
    +      <version>${calcite.version}</version>
    --- End diff --
    
    I have returned calcite-core version into `DependencyManagement` block. 
Drill Calcite version libraries are included into "drill-hive-exec-shaded" 
module. 
    
    I will tell you why it works for now:
    When user submits query in Drill via Hive plugin, the query is validated 
and planned via Drill Calcite. So Hive Calcite isn't necessary for it. 
    Hive Calcite is used only in the process of Drill unit testing, where a lot 
of Hive specific queries are performed to setup Hive store for testing. But 
Drill Calcite and Avatica versions have conflicts with Hive old Calcite and 
Avatica versions. That's why I have disabled Calcite cost based optimizator 
`conf.set(ConfVars.HIVE_CBO_ENABLED.varname, "false");`. We can enable it again 
once Hive will leverage the newest Calcite version. The comment about it is 
added into `drill-hive-exec-shaded` POM.



> Upgrade Hive libraries to 2.1.1 version.
> ----------------------------------------
>
>                 Key: DRILL-5978
>                 URL: https://issues.apache.org/jira/browse/DRILL-5978
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - Hive
>    Affects Versions: 1.11.0
>            Reporter: Vitalii Diravka
>            Assignee: Vitalii Diravka
>            Priority: Major
>              Labels: doc-impacting
>             Fix For: 1.13.0
>
>
> Currently Drill uses [Hive version 1.2.1 
> libraries|https://github.com/apache/drill/blob/master/pom.xml#L53] to perform 
> queries on Hive. This version of library can be used for Hive1.x versions and 
> Hive2.x versions too, but some features of Hive2.x are broken (for example 
> using of ORC transactional tables). To fix that it will be good to update 
> drill-hive library version to 2.1 or newer. 
> Tasks which should be done:
> - resolving dependency conflicts;
> - investigating backward compatibility of newer drill-hive library with older 
> Hive versions (1.x);
> - updating drill-hive version for 
> [MapR|https://github.com/apache/drill/blob/master/pom.xml#L1777] profile too.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to