thisisnic commented on issue #32974:
URL: https://github.com/apache/arrow/issues/32974#issuecomment-7132211694

   Thanks for reporting this! I'm going through older bug issues to see if we 
can close them out or we need further action.
   
   This still happens with pyarrow 26.0.0 and s3fs 2026.9.0. I reproduced it 
against a local S3 mock with a user that can put and get objects but has no 
bucket-level permissions: `pq.write_table` succeeds and `pq.write_to_dataset` 
fails with `PermissionError: Access Denied` from the `create_bucket` call in 
s3fs.
   
   The dataset writer creates each partition directory, which for an fsspec 
filesystem goes through `FSSpecHandler.create_dir` and calls `fs.mkdir(path, 
create_parents=True)`. s3fs then tries to create the bucket when it can't 
confirm it exists. Note that `allow_bucket_creation` is an option of 
`pyarrow.fs.S3FileSystem` and doesn't apply to an s3fs filesystem.
   


-- 
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