Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into doc/column_factories
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Mar 6, 2024
2 parents 098503b + 1d966e9 commit d04e32b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cpp/src/arrow/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class ARROW_EXPORT Buffer {

/// \brief Return the buffer's mutable data as a span
template <typename T>
util::span<T> mutable_span_as() const {
util::span<T> mutable_span_as() {
return util::span(mutable_data_as<T>(), static_cast<size_t>(size() / sizeof(T)));
}

Expand Down
6 changes: 3 additions & 3 deletions python/pyarrow/types.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -5462,7 +5462,7 @@ cdef void pycapsule_schema_deleter(object schema_capsule) noexcept:

free(schema)

cdef object alloc_c_schema(ArrowSchema** c_schema) noexcept:
cdef object alloc_c_schema(ArrowSchema** c_schema):
c_schema[0] = <ArrowSchema*> malloc(sizeof(ArrowSchema))
# Ensure the capsule destructor doesn't call a random release pointer
c_schema[0].release = NULL
Expand All @@ -5481,7 +5481,7 @@ cdef void pycapsule_array_deleter(object array_capsule) noexcept:

free(array)

cdef object alloc_c_array(ArrowArray** c_array) noexcept:
cdef object alloc_c_array(ArrowArray** c_array):
c_array[0] = <ArrowArray*> malloc(sizeof(ArrowArray))
# Ensure the capsule destructor doesn't call a random release pointer
c_array[0].release = NULL
Expand All @@ -5500,7 +5500,7 @@ cdef void pycapsule_stream_deleter(object stream_capsule) noexcept:

free(stream)

cdef object alloc_c_stream(ArrowArrayStream** c_stream) noexcept:
cdef object alloc_c_stream(ArrowArrayStream** c_stream):
c_stream[0] = <ArrowArrayStream*> malloc(sizeof(ArrowArrayStream))
# Ensure the capsule destructor doesn't call a random release pointer
c_stream[0].release = NULL
Expand Down
2 changes: 1 addition & 1 deletion r/R/install-arrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ create_package_with_all_dependencies <- function(dest_file = NULL, source_file =
setwd(untar_dir)

message("Repacking tar.gz file to ", dest_file)
tar_successful <- utils::tar(dest_file, compression = "gz") == 0
tar_successful <- utils::tar(dest_file, compression = "gz", extra_flags = NULL) == 0
if (!tar_successful) {
stop("Failed to create new tar.gz file")
}
Expand Down

0 comments on commit d04e32b

Please sign in to comment.