From 1dfe06cf7bb11c091bf8892ddaed027686ad8360 Mon Sep 17 00:00:00 2001 From: Sumedh Pimplikar Date: Sun, 22 Nov 2026 19:23:48 +0530 Subject: [PATCH] docs: correct spelling in documentation and comments --- cpp/examples/tutorial_examples/dataset_example.cc | 2 +- cpp/src/arrow/acero/swiss_join.cc | 2 +- cpp/src/arrow/chunk_resolver.h | 2 +- cpp/src/arrow/util/dict_util.cc | 4 ++-- docs/source/cpp/compute.rst | 2 +- docs/source/format/CDataInterface/PyCapsuleInterface.rst | 2 +- docs/source/format/Columnar.rst | 2 +- docs/source/format/Intro.rst | 2 +- docs/source/python/data.rst | 2 +- docs/source/python/interchange_protocol.rst | 2 +- r/src/arrow_types.h | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cpp/examples/tutorial_examples/dataset_example.cc b/cpp/examples/tutorial_examples/dataset_example.cc index c32cf6ec4c60..996ecda63dc4 100644 --- a/cpp/examples/tutorial_examples/dataset_example.cc +++ b/cpp/examples/tutorial_examples/dataset_example.cc @@ -76,7 +76,7 @@ arrow::Result 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()) diff --git a/cpp/src/arrow/acero/swiss_join.cc b/cpp/src/arrow/acero/swiss_join.cc index 9b2ebc33e158..604b68cb8fd0 100644 --- a/cpp/src/arrow/acero/swiss_join.cc +++ b/cpp/src/arrow/acero/swiss_join.cc @@ -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; diff --git a/cpp/src/arrow/chunk_resolver.h b/cpp/src/arrow/chunk_resolver.h index fbf84876e3dc..b61f002486af 100644 --- a/cpp/src/arrow/chunk_resolver.h +++ b/cpp/src/arrow/chunk_resolver.h @@ -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; ResolveManyImpl(n_indices, reinterpret_cast(logical_index_vec), diff --git a/cpp/src/arrow/util/dict_util.cc b/cpp/src/arrow/util/dict_util.cc index 00f72746604b..5edd5ec2af68 100644 --- a/cpp/src/arrow/util/dict_util.cc +++ b/cpp/src/arrow/util/dict_util.cc @@ -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]; @@ -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]; diff --git a/docs/source/cpp/compute.rst b/docs/source/cpp/compute.rst index a328d7d07655..4c2df6b3176e 100644 --- a/docs/source/cpp/compute.rst +++ b/docs/source/cpp/compute.rst @@ -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. diff --git a/docs/source/format/CDataInterface/PyCapsuleInterface.rst b/docs/source/format/CDataInterface/PyCapsuleInterface.rst index 06315a4b3983..b19d094f31a6 100644 --- a/docs/source/format/CDataInterface/PyCapsuleInterface.rst +++ b/docs/source/format/CDataInterface/PyCapsuleInterface.rst @@ -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__"): diff --git a/docs/source/format/Columnar.rst b/docs/source/format/Columnar.rst index f95d7e80769d..7e4c89d54c40 100644 --- a/docs/source/format/Columnar.rst +++ b/docs/source/format/Columnar.rst @@ -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: :: diff --git a/docs/source/format/Intro.rst b/docs/source/format/Intro.rst index e98bd40e0107..05f8a39c95f4 100644 --- a/docs/source/format/Intro.rst +++ b/docs/source/format/Intro.rst @@ -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 diff --git a/docs/source/python/data.rst b/docs/source/python/data.rst index 22a3114fdd28..9863e7597d0d 100644 --- a/docs/source/python/data.rst +++ b/docs/source/python/data.rst @@ -942,7 +942,7 @@ It can also be sent between languages using the :ref:`C stream interface & 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) {