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

Only include meta fields to reorder while preparing dataset for bulk insert

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None

      Description

      Below filter in `HoodieDatasetBulkInsertHelper` will result in `_hoodie_is_deleted` to be reordered as well even though it is not part of meta columns.

      List<Column> originalFields =
              Arrays.stream(rowsWithMetaCols.schema().fields()).filter(field -> !field.name().contains("_hoodie_")).map(f -> new Column(f.name())).collect(Collectors.toList());
      
          List<Column> metaFields =
              Arrays.stream(rowsWithMetaCols.schema().fields()).filter(field -> field.name().contains("_hoodie_")).map(f -> new Column(f.name())).collect(Collectors.toList());
      

      The fix is to check only for `HoodieRecord.HOODIE_META_COLUMNS_WITH_OPERATION`.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                codope Sagar Sumit
                Reporter:
                codope Sagar Sumit
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: