-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_sql from SQL Server to Arrow truncates datetime #229
Comments
Hi @t-alex-fritz , there is some issue when we dealing with datetime for |
Hi @wangxiaoying, thank you! This throws a |
@t-alex-fritz , can you update to the latest alpha version |
On
|
@t-alex-fritz looks like it is the issue of type conversion of pyarrow. Can you check whether this |
Oh, you are right, my bad! That last part was a pyarrow thing and works now after setting |
I'm working with a MS SQL Server 2019. When reading a datetime field,
read_sql
correctly captures it in a pandas dataframe. When I convert that dataframe to an arrow table, datetimes are also retained correctly. However, loading directly to an arrow table truncates the datetime fields to midnight. I'd like to remove the pandas dependency and load directly to an arrow table. Is there a way to do this without truncating the datetime?Example Code:
Example Output:
The text was updated successfully, but these errors were encountered: