Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-6 Support for Hive 3.x
  3. HUDI-515

Resolve API conflict for Hive 2 and Hive 3

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Currently I am working on supporting HIVE 3. There is an API issue.

      In HoodieCombineHiveInputFormat.java, it calls a Hive method: HiveFileFormatUtils.getPartitionDescFromPathRecursively(). But this method is removed in Hive 3 and replaced by HiveFileFormatUtils.getFromPathRecursively().

      Ideally, Hudi should support both Hive 2 & Hive 3 so that both

      mvn clean install

      and

      mvn clean install -Dhive.version=3.x

      could work.

      One solution is to directly copy source code from HiveFileFormatUtils.getFromPathRecursively() and put that code inside HoodieCombineHiveInputFormat.java.

      The other way is using java reflection to decide which method to use. (preferred)

      Attachments

        Activity

          People

            Unassigned Unassigned
            wenningd Wenning Ding
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: