Datatype Date32, support range 1925 to 2283#25774
Datatype Date32, support range 1925 to 2283#25774kssenii merged 25 commits intoClickHouse:masterfrom
Conversation
# Conflicts: # src/DataTypes/IDataType.h # src/Functions/CustomWeekTransforms.h
|
retest this please |
# Conflicts: # src/DataStreams/PostgreSQLBlockInputStream.cpp
|
@kssenii I fix some functional tests.There are still two failure cases, but they seem to have nothing to do with my code. And AST fuzzer failed, I didn't change the wrong line of code. I don't know how to fix it |
|
Ok! I'll try to review as soon as I can (most likely tomorrow). |
|
I think that here ClickHouse/base/common/DateLUTImpl.h Lines 1156 to 1164 in 9c2aad6 data types need to be adjusted (hint from fuzzer ../base/common/../common/DateLUTImpl.h:1173:35: runtime error), the max now will be Int32 after adding Date32, there is no need in int64. Lets make it Int32 in methods which then call inside addMonths. Please, check similar places there.
|
I fix this issue, fuzzer test is ok |
|
Also please run |
9a0e97a to
dfe05ca
Compare
I have run this script, but third-party checks still fail |
|
@kssenii failed again... |
|
|
|
Internal documentation ticket: DOCSUP-11585. |
|
I found that my github id disappeared from the code base. This is a sad story. @kssenii |
|
@liuneng1994 Your commits are recorded: And you will appear in the |
OK, thanks very much |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add a new datatype Date32 (store data as Int32), support date range same with Datetime64
support load parquet date32 to ClickHouse Date32
Add new function toDate32 like toDate
Support some function :
Detailed description / Documentation draft:
I will add more docs in the future
Information about CI checks: https://clickhouse.tech/docs/en/development/continuous-integration/