Skip to content

Commit

Permalink
fix remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Aug 14, 2023
1 parent 90ea9e1 commit 15d0e4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ repos:
types_or: [rst, markdown, c, c++]
additional_dependencies: [tomli]
exclude: |
"^extensions/nanoarrow_ipc/thirdparty"
"|extensions/nanoarrow_ipc/src/nanoarrow/nanoarrow_ipc_flatcc_generated.h"
(?x)
^extensions/nanoarrow_ipc/thirdparty
|nanoarrow_ipc_flatcc_generated.h
|nanoarrow_device_metal.cc
exclude: "^dist"
2 changes: 1 addition & 1 deletion extensions/nanoarrow_ipc/src/nanoarrow/nanoarrow_ipc.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ ArrowErrorCode ArrowIpcDecoderVerifyHeader(struct ArrowIpcDecoder* decoder,
/// decoder.codec is set and a successful call can be followed by a call to
/// ArrowIpcDecoderDecodeArray().
///
/// In almost all cases this should be preceeded by a call to
/// In almost all cases this should be preceded by a call to
/// ArrowIpcDecoderVerifyHeader() to ensure decoding does not access data outside of the
/// specified buffer.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct ArrowIpcField {
// array is scratch space for any intermediary allocations (i.e., it is never moved
// to the user).
struct ArrowArray* array;
// The cumulative number of buffers preceeding this node.
// The cumulative number of buffers preceding this node.
int64_t buffer_offset;
};

Expand Down Expand Up @@ -1068,7 +1068,7 @@ ArrowErrorCode ArrowIpcDecoderDecodeHeader(struct ArrowIpcDecoder* decoder,
ns(MessageHeader_type_name(decoder->message_type)));
return ENOTSUP;
default:
ArrowErrorSet(error, "Unnown message type: %d", (int)(decoder->message_type));
ArrowErrorSet(error, "Unknown message type: %d", (int)(decoder->message_type));
return EINVAL;
}

Expand Down Expand Up @@ -1570,7 +1570,7 @@ static ArrowErrorCode ArrowIpcDecoderDecodeArrayInternal(

// If validation is going to happen it has already occurred; however, the part of
// ArrowArrayFinishBuilding() that allocates a data buffer if the data buffer is
// NULL (required for compatability with Arrow <= 9.0.0) assumes CPU data access
// NULL (required for compatibility with Arrow <= 9.0.0) assumes CPU data access
// and thus needs a validation level >= default.
if (validation_level >= NANOARROW_VALIDATION_LEVEL_DEFAULT) {
NANOARROW_RETURN_NOT_OK(
Expand Down

0 comments on commit 15d0e4f

Please sign in to comment.