Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/examples/tutorial_examples/dataset_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ arrow::Result<std::string> CreateExampleParquetDataset(
}

arrow::Status PrepareEnv() {
// Initilize the compute module to register the required kernels for Dataset
// Initialize the compute module to register the required kernels for Dataset
ARROW_RETURN_NOT_OK(arrow::compute::Initialize());
// Get our environment prepared for reading, by setting up some quick writing.
ARROW_ASSIGN_OR_RAISE(auto src_table, CreateTable())
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/acero/swiss_join.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@ Status JoinResidualFilter::FilterLeftSemi(const ExecBatch& keypayload_batch,
match_iterator.SetLookupResult(num_batch_rows, batch_start_row, match_bitvector,
key_ids, no_duplicate_keys, key_to_payload_);
int num_matches_next = 0;
// Used to not only collect distinct row ids, but also skip unecessary matches in the
// Used to not only collect distinct row ids, but also skip unnecessary matches in the
// next batch.
//
int row_id_last = JoinMatchIterator::kInvalidRowId;
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/chunk_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ARROW_EXPORT ChunkResolver {
// Negative logical indices can become large values when cast to unsigned, and
// they are gracefully handled by ResolveManyImpl, but both the chunk index
// and the index in chunk values will be undefined in these cases. This
// happend because int8_t(-1) == uint8_t(255) and 255 could be a valid
// happened because int8_t(-1) == uint8_t(255) and 255 could be a valid
// logical index in the chunked array.
using U = std::make_unsigned_t<IndexType>;
ResolveManyImpl(n_indices, reinterpret_cast<const U*>(logical_index_vec),
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/util/dict_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int64_t LogicalNullCount(const ArraySpan& span) {
indices_valid_bitmap, span.offset, span.length,
[=, &null_count](int64_t position, int64_t length, bool valid) {
if (valid) {
// This is a run of valid indicies, so we need to look each of them up
// This is a run of valid indices, so we need to look each of them up
// in the dictionary array to see if they are null
for (int64_t i = position; i < position + length; i++) {
CType index = indices_data[i];
Expand Down Expand Up @@ -74,7 +74,7 @@ void SetLogicalNullBits(const ArraySpan& span, uint8_t* out_bitmap, int64_t out_
indices_valid_bitmap, span.offset, span.length,
[=](int64_t position, int64_t length, bool valid) {
if (valid) {
// This is a run of valid indicies, so we need to look each of them up
// This is a run of valid indices, so we need to look each of them up
// in the dictionary array to see if they are null
for (int64_t i = position; i < position + length; i++) {
CType index = indices_data[i];
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cpp/compute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ For timestamps inputs with non-empty timezone, localized timestamp components wi
used to set the starting day of the week using ISO convention (Monday=1, Sunday=7).
:member:`DayOfWeekOptions::week_start` parameter is not affected by :member:`DayOfWeekOptions::count_from_zero`.

* \(2) First ISO week has the majority (4 or more) of it's days in January. ISO year
* \(2) First ISO week has the majority (4 or more) of its days in January. ISO year
starts with the first ISO week. ISO week starts on Monday.
See `ISO 8601 week date definition`_ for more details.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/format/CDataInterface/PyCapsuleInterface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ enough to support this is to check whether ``pa.Array`` has the
# NEW METHOD
def to_arrow(self) -> pa.Array:
# PyArrow added support for constructing arrays from objects implementing
# __arrow_c_array__ in the same version it added the method for it's own
# __arrow_c_array__ in the same version it added the method for its own
# arrays. So we can use hasattr to check if the method is available as
# a proxy for checking the PyArrow version.
if hasattr(pa.Array, "__arrow_c_array__"):
Expand Down
2 changes: 1 addition & 1 deletion docs/source/format/Columnar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ A run must have a length of at least 1. This means the values in the
run ends array all are positive and in strictly ascending order. A run end cannot be
null.

The REE parent has no validity bitmap, and it's null count field should always be 0.
The REE parent has no validity bitmap, and its null count field should always be 0.
Null values are encoded as runs with the value null.

As an example, you could have the following data: ::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/format/Intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ saved in the schema and the values of a specific field (key) are saved in
the child array.

Since child arrays are independent, Arrow does not enforce physical
consistency between the struct's validity bitmap and those of it's children.
consistency between the struct's validity bitmap and those of its children.
Logically, a struct row is only valid if both the parent and the child
bitmaps have a value of 1 for that slot (a logical AND operation).
This allows for "hidden" data to exist in child arrays at null struct
Expand Down
2 changes: 1 addition & 1 deletion docs/source/python/data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ It can also be sent between languages using the :ref:`C stream interface <c-stre
Conversion of RecordBatch to Tensor
-----------------------------------

Each array of the ``RecordBatch`` has it's own contiguous memory that is not necessarily
Each array of the ``RecordBatch`` has its own contiguous memory that is not necessarily
adjacent to other arrays. A different memory structure that is used in machine learning
libraries is a two dimensional array (also called a 2-dim tensor or a matrix) which takes
only one contiguous block of memory.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/python/interchange_protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ From PyArrow to other libraries: ``__dataframe__()`` method
-----------------------------------------------------------

The ``__dataframe__()`` method creates a new exchange object that
the consumer library can take and construct an object of it's own.
the consumer library can take and construct an object of its own.

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion r/src/arrow_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bool can_reuse_memory(SEXP x, const std::shared_ptr<arrow::DataType>& type);
// entirely in C++. Other types of objects are converted using the
// infer_type() S3 generic and the as_arrow_array() S3 generic.
// For data.frame, we need to recurse because the internal conversion
// can't accomodate calling into R. If the user specifies a target type
// can't accommodate calling into R. If the user specifies a target type
// and that target type is an ExtensionType, we also can't convert
// natively (but we check for this separately when it applies).
static inline bool can_convert_native(SEXP x) {
Expand Down
Loading