Skip to content

Commit

Permalink
apacheGH-38923: [GLib] Fix spelling (apache#38924)
Browse files Browse the repository at this point in the history
### Rationale for this change

### What changes are included in this PR?

Spelling fixes to c_glib/

### Are these changes tested?

### Are there any user-facing changes?

* Closes: apache#38923

Lead-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
2 people authored and thisisnic committed Mar 8, 2024
1 parent 872df40 commit 3a1bb60
Show file tree
Hide file tree
Showing 23 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion c_glib/arrow-dataset-glib/dataset-factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ GARROW_AVAILABLE_IN_5_0
gboolean
gadataset_file_system_dataset_factory_add_selector(
GADatasetFileSystemDatasetFactory *factory,
GArrorFileSelector *selector,
GArrowFileSelector *selector,
GError **error);
*/

Expand Down
2 changes: 1 addition & 1 deletion c_glib/arrow-flight-sql-glib/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ G_DECLARE_DERIVABLE_TYPE(GAFlightSQLServer,
/**
* GAFlightSQLServerClass:
* @get_flight_info_statement: A virtual function to implement
* `GetFlightInfoStatment` API that gets a #GAFlightInfo for executing a
* `GetFlightInfoStatement` API that gets a #GAFlightInfo for executing a
* SQL query.
* @do_get_statement: A virtual function to implement `DoGetStatement` API
* that gets a #GAFlightDataStream containing the query results.
Expand Down
4 changes: 2 additions & 2 deletions c_glib/arrow-glib/array-builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5179,7 +5179,7 @@ garrow_binary_dictionary_array_builder_append_indices(GArrowBinaryDictionaryArra
* garrow_binary_dictionary_array_builder_get_dictionary_length:
* @builder: A #GArrowBinaryDictionaryArrayBuilder.
*
* Returns: A number of entries in the dicitonary.
* Returns: A number of entries in the dictionary.
*
* Since: 2.0.0
*/
Expand Down Expand Up @@ -5413,7 +5413,7 @@ garrow_string_dictionary_array_builder_append_indices(GArrowStringDictionaryArra
* garrow_string_dictionary_array_builder_get_dictionary_length:
* @builder: A #GArrowStringDictionaryArrayBuilder.
*
* Returns: A number of entries in the dicitonary.
* Returns: A number of entries in the dictionary.
*
* Since: 2.0.0
*/
Expand Down
2 changes: 1 addition & 1 deletion c_glib/arrow-glib/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ garrow_buffer_get_data(GArrowBuffer *buffer)
* @buffer: A #GArrowBuffer.
*
* Returns: (transfer full) (nullable): The data of the buffer. If the
* buffer is imutable, it returns %NULL. The data is owned by the
* buffer is immutable, it returns %NULL. The data is owned by the
* buffer. You should not free the data.
*
* Since: 0.3.0
Expand Down
2 changes: 1 addition & 1 deletion c_glib/arrow-glib/composite-array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ garrow_run_end_encoded_array_find_physical_offset(
* range of values from offset to length.
*
* Avoid calling this function if the physical length can be
* estabilished in some other way (e.g. when iterating over the runs
* established in some other way (e.g. when iterating over the runs
* sequentially until the end). This function uses binary-search, so
* it has a O(log N) cost.
*
Expand Down
14 changes: 7 additions & 7 deletions c_glib/arrow-glib/compute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ G_BEGIN_DECLS
* #GArrowUTF8NormalizeOptions is a class to customize the
* `utf8_normalize` function.
*
* #GArrowQuantileOptions is a class to customize the `qunatile`
* #GArrowQuantileOptions is a class to customize the `quantile`
* function.
*
* #GArrowIndexOptions is a class to customize the `index` function.
Expand Down Expand Up @@ -5434,7 +5434,7 @@ garrow_record_batch_take(GArrowRecordBatch *record_batch,
* @options: (nullable): A #GArrowFilterOptions.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable) (transfer full): The #GArrowArray filterd
* Returns: (nullable) (transfer full): The #GArrowArray filtered
* with a boolean selection filter. Nulls in the filter will
* result in nulls in the output.
*
Expand Down Expand Up @@ -5670,7 +5670,7 @@ garrow_table_sort_indices(GArrowTable *table,
* @options: (nullable): A #GArrowFilterOptions.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable) (transfer full): The #GArrowTable filterd
* Returns: (nullable) (transfer full): The #GArrowTable filtered
* with a boolean selection filter. Nulls in the filter will
* result in nulls in the output.
*
Expand Down Expand Up @@ -5709,7 +5709,7 @@ garrow_table_filter(GArrowTable *table,
* @options: (nullable): A #GArrowFilterOptions.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable) (transfer full): The #GArrowTable filterd
* Returns: (nullable) (transfer full): The #GArrowTable filtered
* with a chunked array filter. Nulls in the filter will
* result in nulls in the output.
*
Expand Down Expand Up @@ -5750,7 +5750,7 @@ garrow_table_filter_chunked_array(GArrowTable *table,
* @options: (nullable): A #GArrowFilterOptions.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable) (transfer full): The #GArrowChunkedArray filterd
* Returns: (nullable) (transfer full): The #GArrowChunkedArray filtered
* with a boolean selection filter. Nulls in the filter will
* result in nulls in the output.
*
Expand Down Expand Up @@ -5789,7 +5789,7 @@ garrow_chunked_array_filter(GArrowChunkedArray *chunked_array,
* @options: (nullable): A #GArrowFilterOptions.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable) (transfer full): The #GArrowChunkedArray filterd
* Returns: (nullable) (transfer full): The #GArrowChunkedArray filtered
* with a chunked array filter. Nulls in the filter will
* result in nulls in the output.
*
Expand Down Expand Up @@ -5830,7 +5830,7 @@ garrow_chunked_array_filter_chunked_array(GArrowChunkedArray *chunked_array,
* @options: (nullable): A #GArrowFilterOptions.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable) (transfer full): The #GArrowRecordBatch filterd
* Returns: (nullable) (transfer full): The #GArrowRecordBatch filtered
* with a boolean selection filter. Nulls in the filter will
* result in nulls in the output.
*
Expand Down
2 changes: 1 addition & 1 deletion c_glib/arrow-glib/expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ garrow_field_expression_class_init(GArrowFieldExpressionClass *klass)
* @reference: A field name or dot path.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: A newly created #GArrowFieldExpression on sucess, %NULL on
* Returns: A newly created #GArrowFieldExpression on success, %NULL on
* error.
*
* Since: 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion c_glib/arrow-glib/input-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ garrow_file_input_stream_new_file_descriptor(gint file_descriptor,

/**
* garrow_file_input_stream_get_file_descriptor:
* @stream: A #GArrowFileInuptStream.
* @stream: A #GArrowFileInputStream.
*
* Returns: The file descriptor of @stream.
*
Expand Down
2 changes: 1 addition & 1 deletion c_glib/arrow-glib/local-file-system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ G_BEGIN_DECLS
* @title: Local file system classes
* @include: arrow-glib/arrow-glib.h
*
* #GArrowLocalFileSystemOptions is a class for specifyiing options of
* #GArrowLocalFileSystemOptions is a class for specifying options of
* an instance of #GArrowLocalFileSystem.
*
* #GArrowLocalFileSystem is a class for an implementation of a file system
Expand Down
2 changes: 1 addition & 1 deletion c_glib/arrow-glib/metadata-version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* SECTION: metadata-version
* @title: GArrowMetadataVersion
* @short_description: Metadata version mapgging between Arrow and arrow-glib
* @short_description: Metadata version mapping between Arrow and arrow-glib
*
* #GArrowMetadataVersion provides metadata versions corresponding
* to `arrow::ipc::MetadataVersion` values.
Expand Down
8 changes: 4 additions & 4 deletions c_glib/arrow-glib/output-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,13 @@ namespace garrow {
int64_t n_bytes) override {
GError *error = NULL;
gsize n_written_bytes;
auto successed = g_output_stream_write_all(output_stream_,
auto succeeded = g_output_stream_write_all(output_stream_,
data,
n_bytes,
&n_written_bytes,
NULL,
&error);
if (successed) {
if (succeeded) {
position_ += n_written_bytes;
return arrow::Status::OK();
} else {
Expand All @@ -415,8 +415,8 @@ namespace garrow {

arrow::Status Flush() override {
GError *error = NULL;
auto successed = g_output_stream_flush(output_stream_, NULL, &error);
if (successed) {
auto succeeded = g_output_stream_flush(output_stream_, NULL, &error);
if (succeeded) {
return arrow::Status::OK();
} else {
return garrow_error_to_status(error,
Expand Down
12 changes: 6 additions & 6 deletions c_glib/parquet-glib/arrow-file-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ gparquet_arrow_file_reader_class_init(GParquetArrowFileReaderClass *klass)
/**
* gparquet_arrow_file_reader_new_arrow:
* @source: Arrow source to be read.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable): A newly created #GParquetArrowFileReader.
*
Expand Down Expand Up @@ -152,7 +152,7 @@ gparquet_arrow_file_reader_new_arrow(GArrowSeekableInputStream *source,
/**
* gparquet_arrow_file_reader_new_path:
* @path: Path to be read.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable): A newly created #GParquetArrowFileReader.
*
Expand Down Expand Up @@ -189,7 +189,7 @@ gparquet_arrow_file_reader_new_path(const gchar *path,
/**
* gparquet_arrow_file_reader_read_table:
* @reader: A #GParquetArrowFileReader.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (transfer full) (nullable): A read #GArrowTable.
*
Expand Down Expand Up @@ -220,7 +220,7 @@ gparquet_arrow_file_reader_read_table(GParquetArrowFileReader *reader,
* If an index is negative, the index is counted backward from the
* end of the columns. `-1` means the last column.
* @n_column_indices: The number of elements of @column_indices.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (transfer full) (nullable): A read #GArrowTable.
*
Expand Down Expand Up @@ -273,7 +273,7 @@ gparquet_arrow_file_reader_read_row_group(GParquetArrowFileReader *reader,
/**
* gparquet_arrow_file_reader_get_schema:
* @reader: A #GParquetArrowFileReader.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (transfer full) (nullable): A got #GArrowSchema.
*
Expand Down Expand Up @@ -302,7 +302,7 @@ gparquet_arrow_file_reader_get_schema(GParquetArrowFileReader *reader,
* @i: The index of the column to be read.
* If an index is negative, the index is counted backward from the
* end of the columns. `-1` means the last column.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (transfer full) (nullable): A read #GArrowChunkedArray.
*
Expand Down
8 changes: 4 additions & 4 deletions c_glib/parquet-glib/arrow-file-writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ gparquet_arrow_file_writer_class_init(GParquetArrowFileWriterClass *klass)
* @schema: Arrow schema for written data.
* @sink: Arrow output stream to be written.
* @writer_properties: (nullable): A #GParquetWriterProperties.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable): A newly created #GParquetArrowFileWriter.
*
Expand Down Expand Up @@ -451,7 +451,7 @@ gparquet_arrow_file_writer_new_arrow(GArrowSchema *schema,
* @schema: Arrow schema for written data.
* @path: Path to be read.
* @writer_properties: (nullable): A #GParquetWriterProperties.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: (nullable): A newly created #GParquetArrowFileWriter.
*
Expand Down Expand Up @@ -505,7 +505,7 @@ gparquet_arrow_file_writer_new_path(GArrowSchema *schema,
* @writer: A #GParquetArrowFileWriter.
* @table: A table to be written.
* @chunk_size: The max number of rows in a row group.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: %TRUE on success, %FALSE if there was an error.
*
Expand All @@ -528,7 +528,7 @@ gparquet_arrow_file_writer_write_table(GParquetArrowFileWriter *writer,
/**
* gparquet_arrow_file_writer_close:
* @writer: A #GParquetArrowFileWriter.
* @error: (nullable): Return locatipcn for a #GError or %NULL.
* @error: (nullable): Return location for a #GError or %NULL.
*
* Returns: %TRUE on success, %FALSE if there was an error.
*
Expand Down
2 changes: 1 addition & 1 deletion c_glib/parquet-glib/statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ gparquet_statistics_get_n_nulls(GParquetStatistics *statistics)
}

/**
* gparquet_statistics_has_n_distinct_valuess:
* gparquet_statistics_has_n_distinct_values:
* @statistics: A #GParquetStatistics.
*
* Returns: %TRUE if the number of distinct values is set, %FALSE otherwise.
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/flight/test-client-options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_write_size_limit_bytes
assert_equal(100, @options.write_size_limit_bytes)
end

def test_disable_server_verifiation
def test_disable_server_verification
assert do
not @options.disable_server_verification?
end
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/gandiva/test-native-function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_to_string
modulo.to_s)
end

sub_test_case("get_result_nullbale_type") do
sub_test_case("get_result_nullable_type") do
def test_if_null
assert_equal(Gandiva::ResultNullableType::IF_NULL,
@not.result_nullable_type)
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/helper/readable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Helper
module Readable
def read_table(input, type: :file)
if input.is_a?(Arrow::Buffer)
input_stream = Arrow::BufferIntputStream.new(input)
input_stream = Arrow::BufferInputStream.new(input)
else
input_stream = Arrow::FileInputStream.new(input)
end
Expand Down
4 changes: 2 additions & 2 deletions c_glib/test/test-array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ def test_no_diff

def test_diff
array = build_string_array(["Start", "Shutdown", "Reboot"])
other_array = build_string_array(["Start", "Shutdonw", "Reboot"])
other_array = build_string_array(["Start", "Running", "Reboot"])
assert_equal(<<-STRING.chomp, array.diff_unified(other_array))
@@ -1, +1 @@
-"Shutdown"
+"Shutdonw"
+"Running"
STRING
end
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/test-decimal128-data-type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_scale
assert_equal(2, data_type.scale)
end

def test_deciaml_data_type_new
def test_decimal_data_type_new
assert_equal(Arrow::Decimal128DataType.new(8, 2),
Arrow::DecimalDataType.new(8, 2))
end
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/test-decimal256-data-type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_scale
assert_equal(2, data_type.scale)
end

def test_deciaml_data_type_new
def test_decimal_data_type_new
assert_equal(Arrow::Decimal256DataType.new(39, 1),
Arrow::DecimalDataType.new(39, 1))
end
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/test-dictionary-array-builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

class TestDictinaryArrayBuilder < Test::Unit::TestCase
class TestDictionaryArrayBuilder < Test::Unit::TestCase
include Helper::Buildable

def setup
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/test-extension-data-type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_wrap_chunked_array
["a" * 16, nil])
storage2 = build_fixed_size_binary_array(data_type.storage_data_type,
["c" * 16])
chunkd_array = Arrow::ChunkedArray.new([storage1, storage2])
chunked_array = Arrow::ChunkedArray.new([storage1, storage2])
extension_chunked_array = data_type.wrap_chunked_array(chunked_array)
assert_equal([
data_type,
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/test-fixed-size-binary-array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

class TestFixedSizeBinaryrray < Test::Unit::TestCase
class TestFixedSizeBinaryArray < Test::Unit::TestCase
include Helper::Buildable

def setup
Expand Down

0 comments on commit 3a1bb60

Please sign in to comment.