You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "himotoyoshi (via GitHub)" <gi...@apache.org> on 2026/10/19 01:23:50 UTC
[I] [Ruby] Casting to string_view aborts the process [arrow]
himotoyoshi opened a new issue, #54571:
URL: https://github.com/apache/arrow/issues/54571
### Describe the bug, including details regarding any error messages, version, and platform.
Casting an array to string_view aborts the process. The error cannot be rescued.
```
require "arrow"
Arrow::StringArray.new(["a", "b", "c"]).cast(Arrow::StringViewDataType.new)
# GLib-GObject-ERROR **: cannot create instance of abstract (non-instantiatable) type 'GArrowArray'
# (process exits with status 133)
```
Casting to binary_view works:
```
Arrow::BinaryArray.new(["a", "b", "c"]).cast(Arrow::BinaryViewDataType.new).class
# => Arrow::BinaryViewArray
```
garrow_array_new_raw_valist() in c_glib/arrow-glib/basic-array.cpp seems to have a case for BINARY_VIEW but not for STRING_VIEW.
Environment: red-arrow 25.0.1, apache-arrow-glib 25.0.1 (Homebrew), Ruby 3.4.1, macOS 15 (arm64)
### Component(s)
Ruby
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] Casting to string_view aborts the process [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #54571:
URL: https://github.com/apache/arrow/issues/54571#issuecomment-6259568565
Thanks for your report. Could you try #54572?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] Casting to string_view aborts the process [arrow]
Posted by "himotoyoshi (via GitHub)" <gi...@apache.org>.
himotoyoshi commented on issue #54571:
URL: https://github.com/apache/arrow/issues/54571#issuecomment-6261048628
I tried [apache/arrow#54572](https://github.com/apache/arrow/pull/54572) on top of 25.0.1, and it fixes the problem:
```
irb> Arrow::StringArray.new(["a", "b", "c"]).cast(Arrow::StringViewDataType.new)
=>
#<Arrow::StringViewArray:0x0000000107c061f8 ptr=0x0000600002981360 [
"a",
"b",
"c"
]>
```
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] Casting to string_view aborts the process [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #54571: [Ruby] Casting to string_view aborts the process
URL: https://github.com/apache/arrow/issues/54571
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] Casting to string_view aborts the process [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #54571:
URL: https://github.com/apache/arrow/issues/54571#issuecomment-6262044541
Issue resolved by pull request 54572
https://github.com/apache/arrow/pull/54572
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Ruby] Casting to string_view aborts the process [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #54571:
URL: https://github.com/apache/arrow/issues/54571#issuecomment-6262048328
Thanks. Merged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org