drauschenbach commented on issue #949:
URL: https://github.com/apache/datafusion/issues/949#issuecomment-2453473453

   This issue appears to have been resolved.
   
   
   ```python
   import datafusion
   import pyarrow
   import datetime
   
   ctx = datafusion.SessionContext()
   
   batch = pyarrow.RecordBatch.from_arrays(
       [pyarrow.array([1, 2, 3]), pyarrow.array([datetime.date(1970, 1, 
1),datetime.date(1970, 1, 2),datetime.date(1970, 1, 3)])],
       names=["a", "b"],
   )
   df = ctx.create_dataframe([[batch]])
   
   
   >>> print(df)
   DataFrame()
   +---+------------+
   | a | b          |
   +---+------------+
   | 1 | 1970-01-01 |
   | 2 | 1970-01-02 |
   | 3 | 1970-01-03 |
   +---+------------+
   
   
   >>> print(df.schema())
   a: int64
   b: date32[day]
   ```
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to