Skip to content

Commit

Permalink
sink-las: handle null values (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
daleiz authored Aug 22, 2024
1 parent c6e6346 commit 0929d04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sink-las/app/src/main/java/sink/LasSinkTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ void putValue(GenericData.Record record, Schema tableSchema, String field, Objec
} else {
valueSchema = fieldSchema.get();
}
if(value == null) {
record.put(fieldName, null);
return;
}
switch (valueSchema.getType()) {
// for number type, it must be a double type.
case INT:
Expand Down

0 comments on commit 0929d04

Please sign in to comment.