q-aaronzolnailucas opened a new issue, #47214:
URL: https://github.com/apache/arrow/issues/47214

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Affects versions <21.0.0. #44900 I believe fixed this (possibly 
inadvertently) for version 21.
   
   When using constructing a `ParquetDataset`, for example with 
`pyarrow.parquet.read_table`, all ValueErrors are excepted on [these lines in 
`pyarrow.parquet.core`](https://github.com/apache/arrow/blob/apache-arrow-20.0.0/python/pyarrow/parquet/core.py#L1333-L1336)
   
   If the filesystem exists but the user gets a permission error, for example, 
this is excepted. Then, a new `ArrowInvalid` error is going to be thrown from 
on [the next 
line](https://github.com/apache/arrow/blob/apache-arrow-20.0.0/python/pyarrow/parquet/core.py#L1338)
 because the path is interpreted as local. Typically:
   ```
   ArrowInvalid: Expected a local file system path, got a URI
   ```
   This is confusing as the original permission error is nowhere in the 
stacktrace. Could the new error be raised from the original `ValueError` in 
this case, or the except clause narrowed to avoid suppressing the 'true' error? 
Potentially partially backporting #44900 is all that is needed.
   
   ### Component(s)
   
   Python


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