-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-1522] Add a new pipeline for Flink writer #2430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,7 +79,14 @@ public Option<IndexedRecord> getInsertValue(Schema schema) throws IOException { | |
| * @returns {@code true} if record represents a delete record. {@code false} otherwise. | ||
| */ | ||
| protected boolean isDeleteRecord(GenericRecord genericRecord) { | ||
| Object deleteMarker = genericRecord.get("_hoodie_is_deleted"); | ||
| final String isDeleteKey = "_hoodie_is_deleted"; | ||
| // Modify to be compatible with new version Avro. | ||
| // The new version Avro throws for GenericRecord.get if the field name | ||
| // does not exist in the schema. | ||
| if (genericRecord.getSchema().getField(isDeleteKey) == null) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does the old version Avro mean here? This seems like being handled by the check on return
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, i mean the new version Avro, let me fix the comment. |
||
| return false; | ||
| } | ||
| Object deleteMarker = genericRecord.get(isDeleteKey); | ||
| return (deleteMarker instanceof Boolean && (boolean) deleteMarker); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.