Skip to content
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

Date type transformed to uint16 when export to Dataframe #88

Open
blackrez opened this issue Aug 16, 2023 · 1 comment
Open

Date type transformed to uint16 when export to Dataframe #88

blackrez opened this issue Aug 16, 2023 · 1 comment

Comments

@blackrez
Copy link

Describe the issue
When a query retuns Date type and it is exported to Dataframe or Arrow, it will be transformed to

How to reproduce

res = chdb.query('SELECT toDate(now())', 'Dataframe')
res
>>>toDate(now())
>>>0          19585

res = chdb.query('SELECT toDate32(now())', 'Dataframe')
res
>>>toDate32(now())
>>>0      2023-08-16
@Daniel-Robbins
Copy link
Contributor

Daniel-Robbins commented Jan 6, 2024

I will try to fix this. It seems to be a clickhouse arrow format issue: https://clickhouse.com/docs/en/interfaces/formats#data-types-matching-arrow
I will find out why is this:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants