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

   Thanks for reporting this! I'm going through older bug issues to see if we 
can close them out. I used an AI agent to build a reprex and run it across 
versions, and I've reviewed the results.
   
   ----------------
   
   🤖 :
   
   This looks like #43574. When a single Parquet file was read from a remote 
filesystem and its path contained a segment such as `tipo=abc`, pyarrow treated 
that segment as a partition column, which clashes with the `tipo` column inside 
the file. Reading a downloaded copy with pandas does not go through that code 
path, which matches what is described above. It was fixed by #49853 and 
released in 25.0.0.
   
   A constructed reprex (one file with a string column `tipo`, stored on an 
fsspec in-memory filesystem as a stand-in for S3, read with 
`pd.read_parquet("memory://...")`, pandas 2.2.3):
   
   | pyarrow | file under `bucket/tipo=abc/` | same file under `bucket/plain/` |
   |---|---|---|
   | 18.1.0 | `ArrowTypeError: Unable to merge: Field tipo has incompatible 
types: string vs dictionary<values=string, indices=int32, ordered=0>` | OK |
   | 24.0.0 | same error | OK |
   | 25.0.0 | OK | OK |
   | 26.0.1 | OK | OK |
   
   This assumes the S3 key had a `tipo=...` segment in it, which isn't shown 
above.
   
   Closing as fixed. If you still see this on 25.0.0 or later, please open a 
new issue.
   


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