lmocsi commented on issue #37070:
URL: https://github.com/apache/arrow/issues/37070#issuecomment-2495109571

   The data is created like this:
   ```python
   import polars as pl
   
   df = pl.DataFrame({'USER_ID': 
[1000,1001,1002,1003,1000,1001,1002,1005,1000,1001,1003,1005,1008],
   'TRX_CNT': [434,11,3,555,111,32,1,2,434,21,44,111,222],
   'DATE_OF_BIRTH': 
['1998-12-02','2002-03-14','1975-09-01','2000-01-01','1998-12-02','2002-03-14','1975-09-01','2004-06-07','1998-12-02','2002-03-14','1999-01-01','2004-06-07','1988-02-28'],
   'CALENDAR_DATE': 
['2023-08-01','2023-08-01','2023-08-01','2023-08-01','2023-08-02','2023-08-02','2023-08-02','2023-08-02','2023-08-03','2023-08-03','2023-08-03','2023-08-03','2023-08-03']
   }, schema={'USER_ID':pl.Int64,
              'TRX_CNT': pl.Int64,
              'DATE_OF_BIRTH': pl.Date,
              'CALENDAR_DATE': pl.Date
              })
   
   df.write_parquet('my_table_name',partition_by=['CALENDAR_DATE'])
   ```
   
   And polars reads it correctly:
   ```python
   import polars as pl
   
   df = pl.read_parquet('my_table_name',hive_partitioning=True)
   print(df)
   ```
   


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