Skip to content

Commit

Permalink
GH-45390: [GLib] Use hyphen-separated words for error tag (#45391)
Browse files Browse the repository at this point in the history
### 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 <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
hiroyuki-sato authored Jan 30, 2025
1 parent 4324a06 commit 73b8812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c_glib/arrow-glib/basic-array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion c_glib/test/test-array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 73b8812

Please sign in to comment.