mapleFU commented on issue #37110:
URL: https://github.com/apache/arrow/issues/37110#issuecomment-1675698193
```python
>>> dataset_ts.schema.to_string()
'DATE_OF_BIRTH: timestamp[ns, tz=UTC]'
>>> date
datetime.datetime(1990, 1, 1, 0, 0, tzinfo=datetime.timezone.utc)
>>> dcast = pa.scalar(dt, type=pa.timestamp('ms', tz='UTC')
>>> dcast = pa.scalar(date, type=pa.timestamp('ms', tz='UTC'))
>>> filter = (ds.field('DATE_OF_BIRTH')>dcast)
>>> df = dataset_ts.to_table(filter=filter, columns=['DATE_OF_BIRTH'])
>>> df
```
Emm I've try to use this in 9.0, seems it works, but in 12.0.1 it would
failed. Let me checkout whats changed here
--
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]