mcrumiller opened a new issue, #39763:
URL: https://github.com/apache/arrow/issues/39763

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   This may be expected behavior, but when hive-partioning a dataset, if a 
float column is used as the parition key and the values are all integer-like 
(e.g. `x.0`) then the output path is `value=x` instead of `value=x.0` and 
cannot be distinguished from an integer column when subsequently re-read.
   
   ### Reproducible Example
   
   ```python
   from pathlib import Path
   import pyarrow as pa
   import pyarrow.parquet as pq
   
   table_out = pa.table(
       {
           "float": [1.0, 2.0, 3.0],
           "int": [1, 2, 3],
       }
   )
   
   pq.write_to_dataset(
       table_out ,
       root_path=Path() / "test_parquet",
       partition_cols=["float"],
   )
   ```
   
   ### Output:
   ```shell
   $ ls test_parquet
   'float=1'  'float=2'  'float=3'
   ```
   
   ### 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