You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2019/12/24 08:31:35 UTC

[GitHub] [incubator-hudi] cdmikechen commented on issue #1073: [HUDI-377] Adding Delete() support to DeltaStreamer

cdmikechen commented on issue #1073: [HUDI-377] Adding Delete() support to DeltaStreamer
URL: https://github.com/apache/incubator-hudi/pull/1073#issuecomment-568693023
 
 
   Is it possible to let `HoodieAvroPayload` also support delete api? https://github.com/apache/incubator-hudi/blob/8172197c353ff6cda491120c41b2d14b412ad709/hudi-common/src/main/java/org/apache/hudi/common/model/HoodieAvroPayload.java#L44
   Maybe like this:
   ```java
           Object deleteMarker = record.get().get("_hoodie_delete_marker");
           if (deleteMarker instanceof Boolean && (boolean) deleteMarker) {
             this.recordBytes = new byte[0];
           } else {
             this.recordBytes = HoodieAvroUtils.avroToBytes(record.get());
           }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services