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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to