Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16752

Enable Unit test - TestDruidRecordWriter.testWrite

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Druid integration
    • None

    Description

      After the changes done in https://issues.apache.org/jira/browse/HIVE-16474 the test is failing due to loading of guava classes from hive-exec jar.
      this is because the hive-exec jar is a shaded jar which contains all the dependencies.
      For details see - https://github.com/apache/hive/blob/master/ql/pom.xml#L820

      "The way shade was configured since 0.13, is to override the default jar for ql module with the shaded one but keep the same name."

      So when mvn resolves the jar when running the unit test, it sees the shaded jar which has guava also.
      To resolve this, there are two ways i could find -
      1) Tweak the order of dependencies in druid
      2) Somehow add a dependency in druid-handler for non-shaded jar, but since it has been already overridden, not sure how to do it.
      3) Use a different namespace for guava classes in hive-exec jar.

      Attachments

        Issue Links

          Activity

            People

              nishantbangarwa Nishant Bangarwa
              nishantbangarwa Nishant Bangarwa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: