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

Incorrect minimum value of Date32 type #409

Closed
yurylabko opened this issue Jan 14, 2024 · 0 comments
Closed

Incorrect minimum value of Date32 type #409

yurylabko opened this issue Jan 14, 2024 · 0 comments

Comments

@yurylabko
Copy link

Describe the bug
An execution error occurs when selecting a Date32 value before 01.01.1925.

To Reproduce
print(client.execute("select toDate32('1920-01-01')"))

last line of Traceback and error:

`\packages\clickhouse_driver\columns\datecolumn.py", line 49, in <genexpr>
return tuple(date_lut[item] for item in items)
~~~~~~~~^^^^^^

KeyError: -18263`

Expected behavior
No error. Result: [(datetime.date(1920, 1, 1),)]

Versions

  • clickhouse-driver: 0.2.6
  • ClickHouse server version: 23.12.1.1368
  • Python version: 3.11.7
xzkostyan added a commit that referenced this issue Jan 14, 2024
xzkostyan added a commit that referenced this issue Jan 15, 2024
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