collimarco opened a new issue, #35877:
URL: https://github.com/apache/arrow/issues/35877
### Describe the bug, including details regarding any error messages,
version, and platform.
I would like to read a file from Cloudflare R2. This is the code:
```ruby
require 'arrow'
require 'parquet'
require 'arrow-dataset'
s3_uri =
URI("s3://accesskey:[email protected]/bucket-name/sample.parquet")
table = Arrow::Table.load(s3_uri, format: :parquet)
```
You need to replace the URI with the actual values for a bucket. I have
checked the values several times and they are correct in my case.
The problem is that the apache arrow library raises this error:
```
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/gobject-introspection-4.1.6/lib/gobject-introspection/loader.rb:705:in
`invoke': [file-system-dataset-factory][set-file-system-uri]: IOError: Bucket
'abc123.r2.cloudflarestorage.com' not found (Arrow::Error::Io)
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/gobject-introspection-4.1.6/lib/gobject-introspection/loader.rb:705:in
`invoke'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/gobject-introspection-4.1.6/lib/gobject-introspection/loader.rb:573:in
`set_file_system_uri'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-dataset-12.0.0/lib/arrow-dataset/file-system-dataset-factory.rb:35:in
`set_file_system_uri'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-dataset-12.0.0/lib/arrow-dataset/arrow-table-loadable.rb:42:in
`block in internal_load_from_uri'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-dataset-12.0.0/lib/arrow-dataset/dataset.rb:24:in
`build'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-dataset-12.0.0/lib/arrow-dataset/arrow-table-loadable.rb:41:in
`internal_load_from_uri'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-dataset-12.0.0/lib/arrow-dataset/arrow-table-loadable.rb:35:in
`load_from_uri'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-12.0.0/lib/arrow/table-loader.rb:49:in
`block in load'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-12.0.0/lib/arrow/table-loader.rb:47:in
`each'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-12.0.0/lib/arrow/table-loader.rb:47:in
`load'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-12.0.0/lib/arrow/table-loader.rb:24:in
`load'
from
/Users/collimarco/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/red-arrow-12.0.0/lib/arrow/table.rb:30:in
`load'
from searchparquetr2.rb:6:in `<main>'
/tmp/apache-arrow-20230508-11129-1jbn0fn/apache-arrow-12.0.0/cpp/src/arrow/filesystem/s3fs.cc:2598:
arrow::fs::FinalizeS3 was not called even though S3 was initialized. This
could lead to a segmentation fault at exit
```
This must be a bug because the bucket with that host name actually exists.
It should be possible to reproduce this by creating a free R2 bucket on
Cloudflare (not public) and then try to run the above code.
### 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]