Skip to content

Commit

Permalink
Unsafe Serialization: Null count is always set to 0 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer authored Sep 11, 2021
1 parent e48da37 commit a11e628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/jniutil/jni_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Status SetMetadataForSingleField(std::shared_ptr<ArrayData> array_data,
std::vector<ipc::internal::FieldMetadata>& nodes_meta,
std::vector<ipc::internal::BufferMetadata>& buffers_meta,
std::shared_ptr<KeyValueMetadata>& custom_metadata) {
nodes_meta.push_back({array_data->length, array_data->null_count, 0L});
nodes_meta.push_back({array_data->length, array_data->GetNullCount(), 0L});

for (size_t i = 0; i < array_data->buffers.size(); i++) {
auto buffer = array_data->buffers.at(i);
Expand Down

0 comments on commit a11e628

Please sign in to comment.