You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When supplying date values outside of the accepted date range of ClickHouse date columns (1970-01-01 to 2105: https://clickhouse.tech/docs/en/sql-reference/data-types/date/) RClickhouse overflows/underflows the date instead of setting to the minimum or maximum date value.
I created and inserted the following 3 data.table variables using RClickhouse:
Which yielded the following results (respectively):
1974-10-01
1970-01-01
1974-10-05
As you can see, the overflow/underflow transforms 0001-01-01 to 1974-10-01. It also transforms the date 0001-01-05 to it's respective 4 days later value 1974-10-05.
This is different from the behavior expected when you manually execute insert statements on a ClickHouse database, as it simply just sets anything lower than the accepted range as the minimum value and higher as the max value.
The text was updated successfully, but these errors were encountered:
When supplying date values outside of the accepted date range of ClickHouse date columns (1970-01-01 to 2105: https://clickhouse.tech/docs/en/sql-reference/data-types/date/) RClickhouse overflows/underflows the date instead of setting to the minimum or maximum date value.
I created and inserted the following 3 data.table variables using RClickhouse:
Which yielded the following results (respectively):
As you can see, the overflow/underflow transforms
0001-01-01
to1974-10-01
. It also transforms the date0001-01-05
to it's respective 4 days later value1974-10-05
.This is different from the behavior expected when you manually execute insert statements on a ClickHouse database, as it simply just sets anything lower than the accepted range as the minimum value and higher as the max value.
The text was updated successfully, but these errors were encountered: