Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-7051

Incorrect replace operation in compaction strategy filter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • compaction, table-service
    • None

    Description

      There are some incorrect replace operation to sort all partition paths.

      return allPartitionPaths.stream().map(partition -> partition.replace("/", "-"))
          .sorted(Comparator.reverseOrder()).map(partitionPath -> partitionPath.replace("-", "/")) 

      the hive partition before replace is dllr_date=2023-10-10, then after will convert to dllr_date=2023/10/10, this is an incorrect partition.

      1. org.apache.hudi.table.action.compact.strategy.DayBasedCompactionStrategy
      2. org.apache.hudi.table.action.compact.strategy.BoundedPartitionAwareCompactionStrategy
      3. org.apache.hudi.table.action.compact.strategy.UnBoundedPartitionAwareCompactionStrategy

      Attachments

        1. image-2023-11-08-16-01-46-166.png
          246 kB
          vmaster.cc
        2. image-2023-11-08-16-02-39-291.png
          230 kB
          vmaster.cc

        Activity

          People

            Unassigned Unassigned
            vmaster vmaster.cc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: