From 73b88127d9406b56b9c1dcf3e5a3524152e38fc3 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Fri, 31 Jan 2025 00:46:25 +0900 Subject: [PATCH] GH-45390: [GLib] Use hyphen-separated words for error tag (#45391) ### Rationale for this change #45390 implemented `garrow_array_validate_full()`. But it used `validate_full` not `validate-full` for error tag. We should use hyphen-separated words for error tag for consistency. ### What changes are included in this PR? `validate_ful` -> `validate-full` ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: #45390 Authored-by: Hiroyuki Sato Signed-off-by: Sutou Kouhei --- c_glib/arrow-glib/basic-array.cpp | 2 +- c_glib/test/test-array.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c_glib/arrow-glib/basic-array.cpp b/c_glib/arrow-glib/basic-array.cpp index 9e9753c4e007d..0704687fed56a 100644 --- a/c_glib/arrow-glib/basic-array.cpp +++ b/c_glib/arrow-glib/basic-array.cpp @@ -1046,7 +1046,7 @@ gboolean garrow_array_validate_full(GArrowArray *array, GError **error) { const auto arrow_array = garrow_array_get_raw(array); - return garrow::check(error, arrow_array->ValidateFull(), "[array][validate_full]"); + return garrow::check(error, arrow_array->ValidateFull(), "[array][validate-full]"); } G_DEFINE_TYPE(GArrowNullArray, garrow_null_array, GARROW_TYPE_ARRAY) diff --git a/c_glib/test/test-array.rb b/c_glib/test/test-array.rb index cd62d917cf664..aa129a4749aba 100644 --- a/c_glib/test/test-array.rb +++ b/c_glib/test/test-array.rb @@ -212,7 +212,7 @@ def test_valid end def test_invalid - message = "[array][validate_full]: Invalid: Invalid UTF8 sequence at string index 0" + message = "[array][validate-full]: Invalid: Invalid UTF8 sequence at string index 0" # U+3042 HIRAGANA LETTER A, U+3044 HIRAGANA LETTER I data = "\u3042\u3044".b[0..-2]